aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-02-07 23:06:58 +0100
committerUlrich Sibiller <uli42@gmx.de>2019-02-11 13:31:33 +0100
commit5bbab001a7909b665683e577bc47794edfd294d4 (patch)
treeafec05c1ea5a1f9fcdc1a54f4d2b5050706e75c2 /nx-X11/programs/Xserver/hw
parent34e4291de2c261f9dd047a7e18cf46eeaf84662a (diff)
downloadnx-libs-5bbab001a7909b665683e577bc47794edfd294d4.tar.gz
nx-libs-5bbab001a7909b665683e577bc47794edfd294d4.tar.bz2
nx-libs-5bbab001a7909b665683e577bc47794edfd294d4.zip
Screen.c: code optimization for rootless mode
In rootless mode skip processing user geometry stuff since the values will we overwritten later anyway.
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 103cd1dbf..9ba217c8f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -885,10 +885,10 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
#endif
/*
- * Forced geometry parameter to user geometry.
+ * Force geometry parameter to user geometry except if in rootless mode.
*/
- if (nxagentResizeDesktopAtStartup)
+ if (nxagentResizeDesktopAtStartup && !nxagentOption(Rootless))
{
if (nxagentUserGeometry.flag & XValue)
{
@@ -922,9 +922,11 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
/*
* This is first time the screen is initialized.
* Filling the geometry parameter from user geometry.
+ * we do not need this in rootless mode since we ignore
+ * user geometry then.
*/
- if (nxagentReconnectTrap == False)
+ if (nxagentReconnectTrap == False && !nxagentOption(Rootless))
{
if (nxagentUserGeometry.flag & XValue)
{
@@ -1067,7 +1069,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
else /* window mode */
{
/*
- * screen is initialized for the first time
+ * screen is initialized for the first time.
*/
if (nxagentReconnectTrap == False)