aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-02-21 22:21:15 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-27 09:32:41 +0100
commit29c166dbed16cbc3112b4915f4e6938b92983999 (patch)
tree1ee4f2f134b971766d6b7eceb4e254f7f420c67f /nxcomp/src
parent9dd2830e0c01e163a3ba92cb07476c02fd132b99 (diff)
downloadnx-libs-29c166dbed16cbc3112b4915f4e6938b92983999.tar.gz
nx-libs-29c166dbed16cbc3112b4915f4e6938b92983999.tar.bz2
nx-libs-29c166dbed16cbc3112b4915f4e6938b92983999.zip
nxagent: Also provide auto DPI feature via nx/nx option 'autodpi', taking only effect on session startups.
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Loop.cpp3
-rw-r--r--nxcomp/src/Misc.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 251eb04f3..5365a99cf 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -8476,7 +8476,8 @@ int ParseEnvironmentOptions(const char *env, int force)
strcasecmp(name, "tile") == 0 ||
strcasecmp(name, "menu") == 0 ||
strcasecmp(name, "magicpixel") == 0 ||
- strcasecmp(name, "state") == 0 )
+ strcasecmp(name, "autodpi") == 0 ||
+ strcasecmp(name, "state") == 0 )
{
nxdbg << "Loop: Ignoring agent option '" << name
<< "' with value '" << value << "'.\n"
diff --git a/nxcomp/src/Misc.cpp b/nxcomp/src/Misc.cpp
index b6bf24578..4f1af0ec4 100644
--- a/nxcomp/src/Misc.cpp
+++ b/nxcomp/src/Misc.cpp
@@ -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\