aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
Commit message (Collapse)AuthorAgeFilesLines
...
* hw/nxagent/Imakefile: explain more macrosUlrich Sibiller2020-05-071-10/+14
| | | | and remove obsolete NX_SPLASH
* Dialog.c: show configured keystrokes in dialogsUlrich Sibiller2020-05-074-33/+144
| | | | | | | | Instead of hardcoding the keystrokes in Dialog.h determine the currently configured keystrokes for the action and insert them into the dialog strings. Fixes ArcticaProject/nx-libs#438
* nxagent: make all traps BooleansUlrich Sibiller2020-05-0714-102/+100
| | | | and use True/False instead of 1/0
* Literals.h: always include in compilationUlrich Sibiller2020-05-074-7/+2
| | | | | | This change ensures Literals.h is always referenced during compilation, effectively hiding it from "unused file" detection we do occasionally to clean up the source code.
* Init.c Use dpmsstubs.c instead of an own copyUlrich Sibiller2020-05-071-25/+0
| | | | | | | | | | | | | | | | | Derived from commit 978f3b496b9951ee8120a0efcc5cd12503e26770 Author: Roland Mainz <roland.mainz@nrubsig.org> Date: Sat Mar 5 21:38:29 2005 +0000 xc/programs/Xserver/Imakefile xc/programs/Xserver/hw/xnest/Imakefile //bugs.freedesktop.org/show_bug.cgi?id=2653) attachment #2020 (https://bugs.freedesktop.org/attachment.cgi?id=2020): Cleanup Xnest usage of the DPMS dummy stub functions from dpmsstubs.c instead of using it's own copy of these functions. Fixes ArcticaProject/nx-libs#901
* Drop unused screensaver xpmUlrich Sibiller2020-05-071-711/+0
| | | | See ArcticaProject/nx-libs#263 for discussion
* Splash.c: reduce number of X calls for logo paintingUlrich Sibiller2020-05-071-117/+20
| | | | Instead of 17 XFillPolygon() calls we now use 5.
* Splash.c: reduce number of Xlib callsUlrich Sibiller2020-05-071-10/+24
|
* Splash.c: always paint background over the whole windowUlrich Sibiller2020-05-071-3/+3
| | | | Was wrong when scale was different from 1
* Splash.c: move the GC to nxagentPaintLogoUlrich Sibiller2020-05-071-5/+7
| | | | It is not needed elsewhere.
* Splash.h: split out xdmcp parts into separate header fileUlrich Sibiller2020-05-074-12/+43
|
* Splash.c: make variables staticUlrich Sibiller2020-05-071-3/+3
| | | | They are not used from the outside.
* Splash.c: use uppercase color definesUlrich Sibiller2020-05-071-10/+10
|
* Splash.c: some reformattingUlrich Sibiller2020-05-071-13/+9
|
* Splash.c: use more Xlib typesUlrich Sibiller2020-05-073-15/+12
|
* Splash.c: add nxagentHaveSplashWindow helperUlrich Sibiller2020-05-074-2/+8
|
* Splash.c: center logoUlrich Sibiller2020-05-071-78/+104
| | | | | | was offset to the right and downwards before Fixes ArcticaProject/nx-libs#892
* Splash.c: fix syntax error in TEST modeUlrich Sibiller2020-05-071-1/+1
|
* Render.c: describe function purposeUlrich Sibiller2020-05-071-0/+1
| | | | (from nxagent changelog)
* Render.c: replace two while loops by shorter for loopsUlrich Sibiller2020-05-071-9/+3
|
* Rootless.c: undo overzealous scope improvementUlrich Sibiller2020-05-071-3/+3
| | | | It is better to create the values array once and not on every iteration..
* nxagent: simplify nxagentFreeRegion macroUlrich Sibiller2020-05-075-23/+22
| | | | | | Does not require two parameters. It could be replaced by RegionDestroy() entirely but we leave it to have a match to nxagentCreateRegion().
* Drawable.c: get rid of goto code in nxagentSynchronizeDrawableDataUlrich Sibiller2020-05-071-16/+4
| | | | | Now all cleanup code at the end of the function is gone so there's no need for the gotos anymore. Just return directly.
* Drawable.c: refactor nxagentSynchronizeDrawableDataUlrich Sibiller2020-05-071-78/+52
| | | | | move common code into helper function that also takes care of the ugly alloc/free stuff.
* Screen.c: formatting fixesUlrich Sibiller2020-05-071-7/+8
|
* nxagent: Free atom map on terminationUlrich Sibiller2020-05-073-2/+17
|
* Atoms.c: refine comment on NX_CUT_BUFFER_SERVERUlrich Sibiller2020-05-071-3/+2
|
* Atoms.c: scope improvementsUlrich Sibiller2020-05-071-4/+3
|
* Atoms.c: remove unused return value of nxagentInitAtomsMapUlrich Sibiller2020-05-071-4/+4
|
* Atoms.h: reformat commentsUlrich Sibiller2020-05-071-7/+4
|
* Atoms.c: always duplicate strings before storing them in privAtomMapUlrich Sibiller2020-05-071-26/+11
| | | | | Otherwise we will never be able to free the list because we do not know if free() is allowed or not.
* Atoms.c: some code cleanupUlrich Sibiller2020-05-071-55/+71
| | | | add else clauses, improve debugging, add comments
* Atoms.c: add missing freeUlrich Sibiller2020-05-071-0/+2
| | | | not a real memleak since it is followed by a FatalError...
* Atoms.c: remove one obsolete FIXMEUlrich Sibiller2020-05-071-4/+3
| | | | The FIXME just described what the following function actually implements...
* Screen.c: spelling fixUlrich Sibiller2020-05-071-1/+1
|
* Events.c: simplify nxagentInternalWindowsTreeUlrich Sibiller2020-05-071-6/+2
|
* Events.c: Whitespace fixUlrich Sibiller2020-05-071-1/+1
|
* Screen.c: activate fallback to dix blankingUlrich Sibiller2020-04-071-2/+2
| | | | | | We have no hardware that could blank the screen for us. So let nxagentSaveScreen return False in some situations to let dix do the default action.
* Screen.c: document nxagentSaveScreenUlrich Sibiller2020-04-071-22/+37
|
* nxagent: remove now-obsolete own copies of ScreenSaver procsUlrich Sibiller2020-04-072-272/+0
| | | | | we moved the auto-disconnect feature to an own timer so there's no need for a special treatment in screen saver stuff anymore.
* nxagent: re-implement timeout handlingUlrich Sibiller2020-04-077-88/+114
| | | | | | Option -timeout used the screensaver facility. This patch changes that to an own timer that is independent. This effectly means we can drop most of the derived screensaving stuff in a follow-up commit.
* release 3.5.99.233.5.99.23Mike Gabriel2020-01-301-1/+1
|
* nxagent: rename variables that shadow globalsUlrich Sibiller2020-01-258-61/+61
|
* Events.c: fix capslock weirdness (re-add lost code)Ulrich Sibiller2020-01-251-0/+1
| | | | | | This was removed by mistake in 39866f5c133230e5731156c2356c8571c971534c. Fixes ArcticaProject/nx-libs#904
* compext/Clean.c: fix shadow warnings / scopeUlrich Sibiller2020-01-101-20/+12
| | | | | | | | | | | | | | | | | | | | | | | Clean.c: In function ‘CleanZImage’: Clean.c:141:23: warning: declaration of ‘j’ shadows a previous local [-Wshadow=local] register int i, j; ^ Clean.c:88:16: note: shadowed declaration is here unsigned int j; ^ Clean.c: In function ‘CopyAndCleanImage’: Clean.c:239:22: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local] register int i; ^ Clean.c:192:16: note: shadowed declaration is here register int i; ^ Clean.c:324:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local] int i; ^ Clean.c:192:16: note: shadowed declaration is here register int i; ^
* Drawable.c: fix logic broken by scope cleanupUlrich Sibiller2020-01-101-5/+3
| | | | | | | | | | | | xp must be declared outside the while loop! xp was reset in each interation despite being increased at the iteration's end! To protect against this happening again replace the while loop by a for loop that references xp. Bug introduced by d94f472744355c71987d145727aecace1e8455b6
* Cursor.c: drop unused return code for nxagentDisconnectAllCursorUlrich Sibiller2020-01-093-4/+4
|
* Pixmap.c: drop unused return code for nxagentDisconnectAllPixmapsUlrich Sibiller2020-01-092-12/+7
|
* Pixmap.c: fix variable shadowingUlrich Sibiller2020-01-092-2/+16
| | | | | | | | | | | | | | | | | Pixmap.c: In function ‘nxagentDisconnectAllPixmaps’: Pixmap.c:677:19: warning: declaration of ‘r’ shadows a previous local [-Wshadow=compatible-local] for (int i = 0, r = 1; i < MAXCLIENTS; r = 1, i++) ^ Pixmap.c:652:7: note: shadowed declaration is here int r = 1; ^ Pixmap.c: In function ‘nxagentReconnectAllPixmaps’: Pixmap.c:840:19: warning: declaration of ‘result’ shadows a previous local [-Wshadow=compatible-local] for (int i = 0, result = 1; i < MAXCLIENTS; result = 1, i++) ^~~~~~ Pixmap.c:807:8: note: shadowed declaration is here Bool result = 1; ^~~~~~
* Display.c: fix shadowed/unused variableUlrich Sibiller2020-01-091-1/+0
| | | | | | | | | | | Display.c: In function ‘nxagentInitAndCheckVisuals’: Display.c:2273:10: warning: declaration of ‘matched’ shadows a previous local [-Wshadow=compatible-local] bool matched = false; ^~~~~~~ Display.c:2258:8: note: shadowed declaration is here bool matched; ^~~~~~~ Display.c:2258:8: warning: unused variable ‘matched’ [-Wunused-variable]