diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-02-15 11:45:14 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-02-15 11:45:14 +0100 |
commit | 24d7d0faa4b5c12c691599bf61bae5cfe1ef4120 (patch) | |
tree | afec05c1ea5a1f9fcdc1a54f4d2b5050706e75c2 /nx-X11/programs/Xserver/hw/nxagent/Window.c | |
parent | b61934be2e9b4a8d3112270b0e691d47f99ba39f (diff) | |
parent | 586742b715a3e3451a4587439778c410a1970cdd (diff) | |
download | nx-libs-24d7d0faa4b5c12c691599bf61bae5cfe1ef4120.tar.gz nx-libs-24d7d0faa4b5c12c691599bf61bae5cfe1ef4120.tar.bz2 nx-libs-24d7d0faa4b5c12c691599bf61bae5cfe1ef4120.zip |
Merge branch 'uli42-pr/revert' into 3.6.x
Attributes GH PR #773: https://github.com/ArcticaProject/nx-libs/pull/773
Fixes ArcticaProject/nx-libs#772.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Window.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Window.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c index ce0563f25..c404d0a46 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Window.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c @@ -397,7 +397,7 @@ Bool nxagentCreateWindow(WindowPtr pWin) nxagentWindowPriv(pWin) -> corruptedTimestamp = 0; nxagentWindowPriv(pWin) -> splitResource = NULL; - if (nxagentOption(Rootless)) + if (nxagentOption(Rootless) == 1) { if (pWin != nxagentRootlessWindow) { @@ -557,7 +557,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin) { nxagentPrivWindowPtr pWindowPriv; - if (nxagentScreenTrap) + if (nxagentScreenTrap == 1) { return 1; } @@ -685,7 +685,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin) Bool nxagentPositionWindow(WindowPtr pWin, int x, int y) { - if (nxagentScreenTrap) + if (nxagentScreenTrap == 1) { return True; } @@ -703,7 +703,7 @@ Bool nxagentPositionWindow(WindowPtr pWin, int x, int y) void nxagentRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib) { - if (nxagentScreenTrap) + if (nxagentScreenTrap == 1) { return; } @@ -713,7 +713,7 @@ void nxagentRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib) void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn) { - if (nxagentOption(Rootless)) + if (nxagentOption(Rootless) == 1) { return; } @@ -908,9 +908,9 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) XCheckTypedWindowEvent(nxagentDisplay, w, LeaveNotify, &e); nxagentFullscreenWindow = w; - if (nxagentOption(DesktopResize)) + if (nxagentOption(DesktopResize) == 1) { - if (!nxagentOption(Shadow)) + if (nxagentOption(Shadow) == 0) { nxagentChangeScreenConfig(0, WidthOfScreen(DefaultScreenOfDisplay(nxagentDisplay)), HeightOfScreen(DefaultScreenOfDisplay(nxagentDisplay))); @@ -959,12 +959,12 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) nxagentIconWindow = nxagentFullscreenWindow = None; - if (nxagentOption(DesktopResize)) + if (nxagentOption(DesktopResize) == 1) { nxagentChangeOption(RootWidth, nxagentOption(SavedRootWidth)); nxagentChangeOption(RootHeight, nxagentOption(SavedRootHeight)); - if (!nxagentOption(Shadow)) + if (nxagentOption(Shadow) == 0) { nxagentChangeScreenConfig(0, nxagentOption(RootWidth), nxagentOption(RootHeight)); @@ -985,7 +985,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) nxagentChangeOption(Width, nxagentOption(SavedWidth)); nxagentChangeOption(Height, nxagentOption(SavedHeight)); - if (nxagentOption(Shadow) && nxagentOption(DesktopResize)) + if (nxagentOption(Shadow) == 1 && nxagentOption(DesktopResize) == 1) { nxagentShadowAdaptToRatio(); } @@ -1225,7 +1225,7 @@ void nxagentConfigureWindow(WindowPtr pWin, unsigned int mask) int offX = nxagentWindowPriv(pWin)->x - pWin->origin.x; int offY = nxagentWindowPriv(pWin)->y - pWin->origin.y; - if (nxagentScreenTrap) + if (nxagentScreenTrap == 1) { #ifdef TEST fprintf(stderr, "nxagentConfigureWindow: WARNING: Called with the screen trap set.\n"); @@ -1234,7 +1234,7 @@ void nxagentConfigureWindow(WindowPtr pWin, unsigned int mask) return; } - if (nxagentOption(Rootless) && + if (nxagentOption(Rootless) == 1 && nxagentWindowTopLevel(pWin) == 1) { mask &= ~(CWSibling | CWStackMode); @@ -1836,7 +1836,7 @@ void nxagentSetWMState(WindowPtr pWin, CARD32 desired) Bool nxagentRealizeWindow(WindowPtr pWin) { - if (nxagentScreenTrap) + if (nxagentScreenTrap == 1) { return True; } @@ -2427,7 +2427,7 @@ void nxagentRefreshWindows(WindowPtr pWin) void nxagentUnmapWindows(void) { - if (nxagentOption(Fullscreen)) + if (nxagentOption(Fullscreen) == 1) { for (int i = 0; i < screenInfo.numScreens; i++) { @@ -2450,7 +2450,7 @@ void nxagentMapDefaultWindows(void) MapWindow(pWin, serverClient); - if (!nxagentOption(Rootless)) + if (nxagentOption(Rootless) == 0) { /* * Show the NX splash screen. @@ -2470,7 +2470,7 @@ void nxagentMapDefaultWindows(void) * Windows client. */ - if (!nxagentOption(Shadow) || !nxagentWMIsRunning) + if (nxagentOption(Shadow) == 0 || !nxagentWMIsRunning) { #ifdef TEST fprintf(stderr, "nxagentMapDefaultWindows: Mapping default window id [%ld].\n", @@ -2479,7 +2479,7 @@ void nxagentMapDefaultWindows(void) XMapWindow(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum]); - if (nxagentOption(Fullscreen) && nxagentWMIsRunning) + if (nxagentOption(Fullscreen) == 1 && nxagentWMIsRunning) { nxagentMaximizeToFullScreen(pScreen); } @@ -2497,7 +2497,7 @@ void nxagentMapDefaultWindows(void) * after the Root Window is mapped. */ - if (!nxagentReconnectTrap) + if (nxagentReconnectTrap == 0) { XRaiseWindow(nxagentDisplay, nxagentInputWindows[pScreen->myNum]); } @@ -2693,7 +2693,7 @@ Bool nxagentReconnectAllWindows(void *p0) * Windows is raised. */ - if (!nxagentOption(Rootless)) + if (nxagentOption(Rootless) == 0) { for (int i = 0; i < screenInfo.numScreens; i++) { @@ -3196,7 +3196,7 @@ XXX: This would break Motif menus. XIconifyWindow(nxagentDisplay, nxagentWindow(pWin), pWin -> drawable.pScreen -> myNum); } } - else if (!nxagentOption(Rootless)) + else if (nxagentOption(Rootless) == 0) { /* * Map the root window. |