diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-27 19:51:03 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-06-27 20:34:29 +0200 |
commit | ea571387b2bed7738eb686a806b1416f239b556b (patch) | |
tree | c3e9119449da33c4a736f09b97268d2de8d61421 | |
parent | 6657b8cc8c8702527c9e66aaf7d999fe9240f5c3 (diff) | |
download | nx-libs-ea571387b2bed7738eb686a806b1416f239b556b.tar.gz nx-libs-ea571387b2bed7738eb686a806b1416f239b556b.tar.bz2 nx-libs-ea571387b2bed7738eb686a806b1416f239b556b.zip |
Screen.c: simplify nxagentMinimizeFromFullscreen
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Screen.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index ebc5d6ce9..54aa8f4e0 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -319,6 +319,13 @@ Bool nxagentIsParentOf(Display *d, Window possible_parent, Window candidate) } } +/* + * Pressing the minimize keystroke while in fullscreen mode will call + * this function. It will unmap the fullscreen window and iconify the + * previously created icon window immediately. The window manager may + * decide how to show an iconified window. kwin e.g. shows it in the + * task bar. + */ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen) { XUnmapWindow(nxagentDisplay, nxagentFullscreenWindow); @@ -326,14 +333,10 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen) if (nxagentIpaq) { XMapWindow(nxagentDisplay, nxagentIconWindow); - XIconifyWindow(nxagentDisplay, nxagentIconWindow, - DefaultScreen(nxagentDisplay)); } - else - { - XIconifyWindow(nxagentDisplay, nxagentIconWindow, + + XIconifyWindow(nxagentDisplay, nxagentIconWindow, DefaultScreen(nxagentDisplay)); - } } /* |