[X2Go-Commits] [nx-libs] 03/54: Screen.c: code optimization for rootless mode
git-admin at x2go.org
git-admin at x2go.org
Sun Mar 24 10:04:59 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository nx-libs.
commit 5bbab001a7909b665683e577bc47794edfd294d4
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Thu Feb 7 23:06:58 2019 +0100
Screen.c: code optimization for rootless mode
In rootless mode skip processing user geometry stuff since the values will we
overwritten later anyway.
---
nx-X11/programs/Xserver/hw/nxagent/Screen.c | 10 ++++++----
1 file 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 103cd1d..9ba217c 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)
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list