aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-04-20 14:19:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-27 14:10:16 +0200
commitebfd8742cb043f718704622b0b8495affe98a708 (patch)
treedf7bb7ad9b16af530ea1dcfaa2cd0e15714b3d84 /nx-X11/programs/Xserver/hw
parent4eaedd002e8628bb6738d2b3994628b1fef3837a (diff)
downloadnx-libs-ebfd8742cb043f718704622b0b8495affe98a708.tar.gz
nx-libs-ebfd8742cb043f718704622b0b8495affe98a708.tar.bz2
nx-libs-ebfd8742cb043f718704622b0b8495affe98a708.zip
Args.c: make autograb available via options file, too.
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Args.c13
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/man/nxagent.14
2 files changed, 17 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c
index cbdb2fd9d..2d998980c 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -1547,6 +1547,19 @@ static void nxagentParseSingleOption(char *name, char *value)
return;
}
+ else if (!strcmp(name, "autograb"))
+ {
+ if (!strcmp(value, "0"))
+ {
+ nxagentChangeOption(AutoGrab, False);
+ }
+ else
+ {
+ nxagentChangeOption(AutoGrab, True);
+ }
+
+ return;
+ }
else
{
#ifdef DEBUG
diff --git a/nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1 b/nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
index 860efd6ac..fbf01f8ea 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+++ b/nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
@@ -756,6 +756,10 @@ format must be included in both. This is potentially unsafe.
means that all of these checks are essentially
deactivated. This is a very bad idea.
.RE
+.TP 8
+.B autograb=<int>
+enable or disable autograb (default: disabled)
+.RE
If you want to use \fBnxagent\fR as a replacement for Xnest or Xephyr you
can pass options like this: