From 3c92b5db9d3d90967410c4dc1d1f8a45554c724b Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 13 Jan 2019 23:47:53 +0100 Subject: Screen.c: fix size calculation in rootless mode There's no need to reduce the size to 75% in rootless mode. We always want to have the full size then. Fixes ArcticaProject/nx-libs#757 (Part 2/2) --- nx-X11/programs/Xserver/hw/nxagent/Screen.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index cfe0fd9de..bd0236ad4 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -1080,12 +1080,26 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, if (nxagentOption(Width) > w) { - nxagentChangeOption(Width, w * 3 / 4); + if (nxagentOption(Rootless)) + { + nxagentChangeOption(Width, w); + } + else + { + nxagentChangeOption(Width, w * 3 / 4); + } } if (nxagentOption(Height) > h) { - nxagentChangeOption(Height, h * 3 / 4); + if (nxagentOption(Rootless)) + { + nxagentChangeOption(Height, h); + } + else + { + nxagentChangeOption(Height, h * 3 / 4); + } } /* -- cgit v1.2.3