Commit c190fd18 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Window.c: rearrange code regarding window decorations sizes

parent ca54fabe
...@@ -1015,14 +1015,21 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn) ...@@ -1015,14 +1015,21 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
* from the window manager via _NET_REQUEST_FRAME_EXTENTS * from the window manager via _NET_REQUEST_FRAME_EXTENTS
*/ */
if (nxagentOption(WMBorderWidth) > 0 && nxagentOption(WMTitleHeight) > 0) if (nxagentOption(WMBorderWidth) > 0)
{ {
nxagentChangeOption(X, nxagentOption(SavedX) - nxagentOption(WMBorderWidth)); nxagentChangeOption(X, nxagentOption(SavedX) - nxagentOption(WMBorderWidth));
nxagentChangeOption(Y, nxagentOption(SavedY) - nxagentOption(WMTitleHeight));
} }
else else
{ {
nxagentChangeOption(X, nxagentOption(SavedX)); nxagentChangeOption(X, nxagentOption(SavedX));
}
if (nxagentOption(WMTitleHeight) > 0)
{
nxagentChangeOption(Y, nxagentOption(SavedY) - nxagentOption(WMTitleHeight));
}
else
{
nxagentChangeOption(Y, nxagentOption(SavedY)); nxagentChangeOption(Y, nxagentOption(SavedY));
} }
......
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