Commit ca54fabe authored by Ulrich Sibiller's avatar Ulrich Sibiller

Window.c: add some comments about fullscreen handling

parent 5858ebc6
...@@ -831,6 +831,11 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) ...@@ -831,6 +831,11 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
} }
w = nxagentDefaultWindows[pScreen -> myNum]; w = nxagentDefaultWindows[pScreen -> myNum];
/*
* override_redirect makes the window manager ignore the window and
* not add decorations, see ICCCM)
*/
attributes.override_redirect = switchOn; attributes.override_redirect = switchOn;
valuemask = CWOverrideRedirect; valuemask = CWOverrideRedirect;
XUnmapWindow(nxagentDisplay, w); XUnmapWindow(nxagentDisplay, w);
...@@ -1003,6 +1008,13 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) ...@@ -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) if (nxagentOption(WMBorderWidth) > 0 && nxagentOption(WMTitleHeight) > 0)
{ {
nxagentChangeOption(X, nxagentOption(SavedX) - nxagentOption(WMBorderWidth)); nxagentChangeOption(X, nxagentOption(SavedX) - nxagentOption(WMBorderWidth));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment