diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-11-04 13:38:30 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-11-04 13:38:30 +0100 |
commit | 48b914810291f405fd5ba8e9db9dfab3ccaf906c (patch) | |
tree | df51d615805d20fd43cb66e58d7123abce90a225 /nx-X11/programs/Xserver/hw/nxagent/Screen.c | |
parent | 6cd4f12322ffccdbbfa10ce9e282e54a932b995c (diff) | |
parent | 252b86ee23cf110e7aef2c3605c5be7ff1cd5a69 (diff) | |
download | nx-libs-48b914810291f405fd5ba8e9db9dfab3ccaf906c.tar.gz nx-libs-48b914810291f405fd5ba8e9db9dfab3ccaf906c.tar.bz2 nx-libs-48b914810291f405fd5ba8e9db9dfab3ccaf906c.zip |
Merge branch 'uli42-pr/various5' into 3.6.x
Attributes GH PR #963: https://github.com/ArcticaProject/nx-libs/pull/963
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Screen.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Screen.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index f8507aa59..148f9e1dd 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -341,7 +341,7 @@ void nxagentMaximizeToFullScreen(ScreenPtr pScreen) XUnmapWindow(nxagentDisplay, nxagentIconWindow); */ - Window root = RootWindow(nxagentDisplay, DefaultScreen(nxagentDisplay)); + Window root = RootWindow(nxagentDisplay, DefaultScreen(nxagentDisplay)); /* FIXME: We'll check for ReparentNotify and LeaveNotify events after @@ -351,55 +351,55 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after unnecessary. */ - /* only reparent if necessary. FIXME: also check if the desired coordinates match */ + /* only reparent if necessary. FIXME: also check if the desired coordinates match */ - if (!nxagentIsParentOf(nxagentDisplay, root, nxagentFullscreenWindow)) - { - XReparentWindow(nxagentDisplay, nxagentFullscreenWindow, - root, 0, 0); + if (!nxagentIsParentOf(nxagentDisplay, root, nxagentFullscreenWindow)) + { + XReparentWindow(nxagentDisplay, nxagentFullscreenWindow, + root, 0, 0); - for (int i = 0; i < 100 && nxagentWMIsRunning; i++) - { - XEvent e; + for (int i = 0; i < 100 && nxagentWMIsRunning; i++) + { + XEvent e; - #ifdef TEST - fprintf(stderr, "nxagentMaximizeToFullscreen: WARNING! Going to wait for the ReparentNotify event [%d].\n", i); - #endif + #ifdef TEST + fprintf(stderr, "nxagentMaximizeToFullscreen: WARNING! Going to wait for the ReparentNotify event [%d].\n", i); + #endif - if (XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, ReparentNotify, &e)) - { - break; - } + if (XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, ReparentNotify, &e)) + { + break; + } - XSync(nxagentDisplay, 0); + XSync(nxagentDisplay, 0); - nxagentWaitEvents(nxagentDisplay, 50); - } - } - else - { - #ifdef TEST - fprintf(stderr, "%s: FullscreenWindow already is child of root window - skipping reparenting,\n", __func__); - #endif + nxagentWaitEvents(nxagentDisplay, 50); } + } + else + { + #ifdef TEST + fprintf(stderr, "%s: FullscreenWindow already is child of root window - skipping reparenting,\n", __func__); + #endif + } XMapRaised(nxagentDisplay, nxagentFullscreenWindow); XIconifyWindow(nxagentDisplay, nxagentIconWindow, DefaultScreen(nxagentDisplay)); - /* swallow all LeaveNotify events for the FullscreenWindow; - Normally this does not swallow anything these days, but when - using fvwm you see one of these events here. */ - while (1) - { - XEvent e; - if (!XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, LeaveNotify, &e)) - break; - #ifdef TEST - fprintf(stderr, "%s: swallowing LeaveNotify event\n", __func__); - #endif - } + /* swallow all LeaveNotify events for the FullscreenWindow; + Normally this does not swallow anything these days, but when + using fvwm you see one of these events here. */ + while (1) + { + XEvent e; + if (!XCheckTypedWindowEvent(nxagentDisplay, nxagentFullscreenWindow, LeaveNotify, &e)) + break; + #ifdef TEST + fprintf(stderr, "%s: swallowing LeaveNotify event\n", __func__); + #endif + } /* XMapWindow(nxagentDisplay, nxagentIconWindow); |