aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-26 18:49:13 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-06-27 20:16:48 +0200
commitca54fabed8e0f531b9a22691d8db1c323475107a (patch)
tree36b31aad44ab475c2cd84c1aa8340c5fd38af4ef
parent5858ebc6da54fe24ba6dab61f1478c812bfa6fb2 (diff)
downloadnx-libs-ca54fabed8e0f531b9a22691d8db1c323475107a.tar.gz
nx-libs-ca54fabed8e0f531b9a22691d8db1c323475107a.tar.bz2
nx-libs-ca54fabed8e0f531b9a22691d8db1c323475107a.zip
Window.c: add some comments about fullscreen handling
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index 78a5081f0..ec62bdd9d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -831,6 +831,11 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
}
w = nxagentDefaultWindows[pScreen -> myNum];
+
+ /*
+ * override_redirect makes the window manager ignore the window and
+ * not add decorations, see ICCCM)
+ */
attributes.override_redirect = switchOn;
valuemask = CWOverrideRedirect;
XUnmapWindow(nxagentDisplay, w);
@@ -1003,6 +1008,13 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
}
}
+ /*
+ * FIXME: These are 0 most of the time nowadays. The effect is,
+ * that the window is moving a bit to right/bottom every time
+ * fullscreen mode is left. To fix this query the frame extents
+ * from the window manager via _NET_REQUEST_FRAME_EXTENTS
+ */
+
if (nxagentOption(WMBorderWidth) > 0 && nxagentOption(WMTitleHeight) > 0)
{
nxagentChangeOption(X, nxagentOption(SavedX) - nxagentOption(WMBorderWidth));