[X2Go-Commits] [nx-libs] 208/219: Args.c: make autograb available via options file, too.
git-admin at x2go.org
git-admin at x2go.org
Sat Sep 28 12:11:07 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit ebfd8742cb043f718704622b0b8495affe98a708
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Thu Apr 20 14:19:27 2017 +0200
Args.c: make autograb available via options file, too.
---
nx-X11/programs/Xserver/hw/nxagent/Args.c | 13 +++++++++++++
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1 | 4 ++++
2 files changed, 17 insertions(+)
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:
--
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