Commit 29c166db authored by Mike Gabriel's avatar Mike Gabriel Committed by Mihai Moldovan

nxagent: Also provide auto DPI feature via nx/nx option 'autodpi', taking only…

nxagent: Also provide auto DPI feature via nx/nx option 'autodpi', taking only effect on session startups.
parent 9dd2830e
......@@ -1278,6 +1278,25 @@ static void nxagentParseOptions(char *name, char *value)
return;
}
else if (!strcmp(name, "autodpi"))
{
if (nxagentReconnectTrap == True)
{
#ifdef DEBUG
fprintf(stderr, "nxagentParseOptions: Ignoring option 'autodpi' at reconnection.\n");
#endif
}
else if (!strcmp(value, "0"))
{
nxagentAutoDPI = False;
}
else
{
nxagentAutoDPI = True;
}
return;
}
else if (strcmp(name, "shadowuid") == 0)
{
nxagentShadowUid = atoi(value);
......
......@@ -606,6 +606,11 @@ proxy <-> agent remote sessions)
.B magicpixel=<bool>
enable/disable magic pixel support in fullscreen mode (default: 1, enabled)
.TP 8
.B autodpi=<bool>
enable/disable deriving session DPI automatically from real server
(default: 0, disabled); only takes effect on session startups, gets
ignored when reconnecting to a suspended session
.TP 8
.B sleep=<int>
delay X server operations when suspended (provided in msec), set to
\fI0\fR to keep \fBnxagent\fR session fully functional when suspended
......
......@@ -8476,6 +8476,7 @@ int ParseEnvironmentOptions(const char *env, int force)
strcasecmp(name, "tile") == 0 ||
strcasecmp(name, "menu") == 0 ||
strcasecmp(name, "magicpixel") == 0 ||
strcasecmp(name, "autodpi") == 0 ||
strcasecmp(name, "state") == 0 )
{
nxdbg << "Loop: Ignoring agent option '" << name
......
......@@ -344,6 +344,7 @@ defer=n\n\
tile=s\n\
menu=n\n\
magicpixel=n\n\
autodpi=n\n\
sleep=n\n\
tolerancechecks=s\n\
keyconv=s\n\
......
......@@ -328,6 +328,7 @@ encryption of the point to point communication.
tile=<string>
menu=<int>
magicpixel=<bool>
autodpi=<bool>
sleep=<int>
.SH NX ENVIRONMENT VARIABLES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment