From d175fd4c6d7872bf51c8509a678fecd84a14850a Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 11 Jan 2019 00:59:55 +0100 Subject: Set default screen size to the whole screen in rootless mode This solves weird window (menu) placement and drawing behaviour on right/lowest 25% of the screen. Fixes ArcticaProject/nx-libs#757 (Part 1/2) --- nx-X11/programs/Xserver/hw/nxagent/Display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c index 448969d44..127874962 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Display.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c @@ -1356,7 +1356,7 @@ FIXME: Use of nxagentParentWindow is strongly deprecated. { if (!(nxagentUserGeometry.flag & WidthValue)) { - if (nxagentOption(Fullscreen)) + if (nxagentOption(Fullscreen) || nxagentOption(Rootless)) { nxagentChangeOption(RootWidth, DisplayWidth(nxagentDisplay, DefaultScreen(nxagentDisplay))); } @@ -1369,7 +1369,7 @@ FIXME: Use of nxagentParentWindow is strongly deprecated. if (!(nxagentUserGeometry.flag & HeightValue)) { - if (nxagentOption(Fullscreen)) + if (nxagentOption(Fullscreen) || nxagentOption(Rootless)) { nxagentChangeOption(RootHeight, DisplayHeight(nxagentDisplay, DefaultScreen(nxagentDisplay))); } -- cgit v1.2.3