aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-26 18:49:36 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-06-27 20:16:48 +0200
commitc190fd1871d00168e2db6df9b91e8bc1ef69fbf5 (patch)
tree4ad334530138902139307e93fc05e3eebf2a012d /nx-X11
parentca54fabed8e0f531b9a22691d8db1c323475107a (diff)
downloadnx-libs-c190fd1871d00168e2db6df9b91e8bc1ef69fbf5.tar.gz
nx-libs-c190fd1871d00168e2db6df9b91e8bc1ef69fbf5.tar.bz2
nx-libs-c190fd1871d00168e2db6df9b91e8bc1ef69fbf5.zip
Window.c: rearrange code regarding window decorations sizes
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index ec62bdd9d..3e27ae566 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -1015,14 +1015,21 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
* 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(Y, nxagentOption(SavedY) - nxagentOption(WMTitleHeight));
}
else
{
nxagentChangeOption(X, nxagentOption(SavedX));
+ }
+
+ if (nxagentOption(WMTitleHeight) > 0)
+ {
+ nxagentChangeOption(Y, nxagentOption(SavedY) - nxagentOption(WMTitleHeight));
+ }
+ else
+ {
nxagentChangeOption(Y, nxagentOption(SavedY));
}