aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Window.c
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright yearsUlrich Sibiller2023-04-281-4/+4
| | | | Addresses ArcticaProject/nx-libs#985
* Screen.c, Window.c: use "None" everywhere for FullscreenWindowUlrich Sibiller2021-10-301-1/+1
|
* nxagent: drop NXAGENT_SHAPE2 defineUlrich Sibiller2021-06-081-24/+10
| | | | | it was the default for years now, so let's drop the define and include the code unconditonally.
* nxagent: drop NXAGENT_SHAPE defineUlrich Sibiller2021-06-081-15/+5
| | | | | was never used in the past years, we were always compiling with -DNXAGENT_SHAPE2
* Use NXAGENT_ONSTART define at more locationsUlrich Sibiller2021-06-081-0/+2
| | | | | marking all the code that is not really required when not using nomachine's nxclient.
* Window.c: add another FIXMEUlrich Sibiller2021-02-031-0/+5
|
* Window.c: Fix 32bit code pathUlrich Sibiller2021-01-301-10/+10
| | | | | | | | make it compile again Thanks to Simon Matter for reporting this and the patch. Fixes ArcticaProject/nx-libs#993
* nxagent: drop unused nxagentVisibility variablesUlrich Sibiller2021-01-301-2/+0
|
* Window.c: suppress warningUlrich Sibiller2021-01-161-1/+1
| | | | | | | | This used to be printed only in TEST mode. Some while ago I had changed that to WARNING (because it is a warning...). However, this happens e.g. when running the xscreensaver vfeedback module and it does not look like it is a problem at all. So let's suppress this warning again and leave it to the TEST mode as it used to be.
* fix formatting and spelling in various filesUlrich Sibiller2021-01-161-1/+1
|
* nxagent: Drop unused nxagentRootTileWindowUlrich Sibiller2021-01-161-2/+0
|
* Window.c: check for malloc failureUlrich Sibiller2021-01-151-13/+22
| | | | PVS finding: "V522 There might be dereferencing of a potential null pointer 'props'"
* Window.c: check for malloc failureUlrich Sibiller2021-01-151-0/+8
| | | | PVS finding: "V522 There might be dereferencing of a potential null pointer 'nxagentConfiguredWindowList'."
* nxagent: make full screen mode selectable at startupUlrich Sibiller2021-01-151-1/+1
| | | | | | | | fullscreen= now accepts the new value "2" for a fullscreen covering only one screen. -geometry and geometry= now know additional keywords "allscreens" and "onescreen". Fixes ArcticaProject/nx-libs#923
* nxagent: handle RegionNil macro as BooleanUlrich Sibiller2021-01-151-1/+1
| | | | just as the rest of the Xserver is alsow doing
* nxagent: rework some Boolean checksUlrich Sibiller2021-01-151-1/+1
| | | | | nxagentWindowTopLevel() and nxagentNeedConnectionChange() return Boolean nxagentPixmapIsVirtual() and nxagentIsShmPixmap(), too.
* nxagent: some more Boolean improvementsUlrich Sibiller2021-01-151-2/+2
|
* nxagent: treat nxagentLastWindowDestroyed as BooleanUlrich Sibiller2021-01-151-1/+1
|
* nxagent: treat all Traps as Booleans everywhereUlrich Sibiller2021-01-151-6/+6
|
* nxagent: make Desktop, Rootless and Binder options Booleans (again)Ulrich Sibiller2021-01-151-6/+6
| | | | | They have been changed to tri-state variables (1, 0 and UNDEFINED) between nxagent 1.5.0-90 and -93, for no obvious reason.
* nxagent: make nxagentOption Shadow a BooleanUlrich Sibiller2021-01-151-4/+4
| | | | and add the missing init code.
* nxagent: treat DesktopResize and nxagentResizeDesktopAtStartup as BooleansUlrich Sibiller2021-01-151-3/+3
| | | | The already where Booleans but where not using True/False values everywhere
* nxagent: make Fullscreen and AllScreens BooleansUlrich Sibiller2021-01-151-2/+2
| | | | | There's no need/sense in having a tri-state with the third state being UNDEFINED.
* Window.c: some more TEST and DEBUG outputUlrich Sibiller2020-10-171-0/+9
|
* Window.c: simplify setting of isMapped private varUlrich Sibiller2020-10-171-8/+2
|
* Window.c: -reportprivatewids reports root window as suchUlrich Sibiller2020-10-171-4/+14
| | | | and not as a "private" window like all others.
* Screen.c: improve output of nxagentPrintAgentGeometryUlrich Sibiller2020-10-171-3/+3
|
* nxagent: add names to some windows in DEBUG modeUlrich Sibiller2020-10-171-0/+26
|
* nxagent: Prevent resize loopUlrich Sibiller2020-10-171-2/+2
| | | | | | This only happened with certain window managers like mutter. Fixes ArcticaProject/nx-libs#925
* nxagent: move variable definitions from headers to source filesUlrich Sibiller2020-05-071-0/+3
| | | | Fixes ArcticaProject/nx-libs#907 (2/3)
* nxagent: Fix double variablesUlrich Sibiller2020-05-071-6/+0
| | | | | | nxagentCorrupted* were defined twice! Fixes ArcticaProject/nx-libs#907 (1/3)
* Windows.h, Window.c*: reformat commentsUlrich Sibiller2020-05-071-73/+51
|
* Window.c: scope improvementsUlrich Sibiller2020-05-071-66/+42
| | | | plus some whitespace improvements
* Splash.c: add nxagentHaveSplashWindow helperUlrich Sibiller2020-05-071-1/+1
|
* Window.c: code simplifications/scopeUlrich Sibiller2020-01-061-11/+5
|
* Window.c: fix commentUlrich Sibiller2020-01-061-2/+2
|
* Window.c: print internal window id as wellUlrich Sibiller2020-01-061-2/+2
|
* Clipboard.c: rename variables/atoms to better reflect their meaningUlrich Sibiller2020-01-051-1/+1
| | | | | | | Unfortunately we cannot rename NX_CUT_BUFFER_SERVER, too, without breaking compatibility because this one is used to signal nomachine's nxclient after the splash screen is gone (see Splash.c, Window.c and ArticaProject/nx-libs#838)
* Clipboard: make nxagentInitClipboard return a BooleanUlrich Sibiller2020-01-051-1/+1
|
* nxagent: Use XlibAtom data type where appropriateUlrich Sibiller2020-01-051-3/+2
| | | | | | | | XlibAtom should be used wherever remote atoms are handled. This is important as Xlib data types and server data types of the same name do not always have identical sizes. See also https://lists.freedesktop.org/archives/xorg-devel/2015-August/047245.html
* NXwindow.c: call InitRootWindow from dixUlrich Sibiller2019-11-021-0/+4
|
* nxagent: drop Holder.[ch]Ulrich Sibiller2019-11-021-1/+0
| | | | The only left code was nxagentCheckum() which was not compiling anyway.
* Window.c: reactivate disabled debug codeUlrich Sibiller2019-09-291-1/+1
|
* Make AutoGrab work in more situationsUlrich Sibiller2019-08-271-1/+10
| | | | | Especially switchin to/from fullscreen with active AutoGrab was problematic. Works much smoother now.
* nxagent: drop NXAGENT_SPLASHUlrich Sibiller2019-08-271-2/+0
| | | | There was only one (commented) section using it.
* nxagent: drop nxagentRootTileWindowUlrich Sibiller2019-08-271-51/+0
| | | | | | | | We either use a solid black or a white background and no backround pixmap. So nxagentRootTileWindow is always empty and we can drop all stuff around it. remove nxagentSplashCount, too, since it is no longer checked anywhere.
* Splash.c: do not wait in nxagent modeUlrich Sibiller2019-08-271-7/+10
| | | | | | | The splash window is only shown in x2go mode. In nxagent mode the splash window was also shown, but empty (and thus invisible). And the code waited for the splash window to disappear. Fix this by skipping _all_ the splash stuff in nxagent mode.
* nxagent: simplify nxagentWaitEvents()Ulrich Sibiller2019-08-271-5/+1
| | | | | no more need to pass down a struct, we now only pass the milliseconds and let the function do the rest.
* Window.c: use SAFE_free and SAFE_XFreeUlrich Sibiller2019-08-061-24/+16
|
* Drop Ipaq supportUlrich Sibiller2019-06-271-6/+0
| | | | Did we ever provide a binary?