Skip to content

Commit 5a4ce09

Browse files
committed
make autograb and inputlock available via options file, too
1 parent 69a401f commit 5a4ce09

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

nx-X11/programs/Xserver/hw/nxagent/Args.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,32 @@ static void nxagentParseOptions(char *name, char *value)
14931493

14941494
return;
14951495
}
1496+
else if (!strcmp(name, "autograb"))
1497+
{
1498+
if (!strcmp(value, "0"))
1499+
{
1500+
nxagentChangeOption(AutoGrab, False);
1501+
}
1502+
else
1503+
{
1504+
nxagentChangeOption(AutoGrab, True);
1505+
}
1506+
1507+
return;
1508+
}
1509+
else if (!strcmp(name, "inputlock"))
1510+
{
1511+
if (!strcmp(value, "0"))
1512+
{
1513+
nxagentChangeOption(InputLock, False);
1514+
}
1515+
else
1516+
{
1517+
nxagentChangeOption(InputLock, True);
1518+
}
1519+
1520+
return;
1521+
}
14961522
else
14971523
{
14981524
#ifdef DEBUG

nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,12 @@ format must be included in both. This is potentially unsafe.
538538
.I bypass
539539
means that all of these checks are essentially
540540
deactivated. This is a very bad idea.
541+
.TP 8
542+
.B autograb=<int>
543+
enable or disable autograb (default: disabled)
544+
.TP 8
545+
.B inputlock=<int>
546+
enable or disable inputlock (default: disabled)
541547
.RE
542548

543549
.SH XDMCP OPTIONS

0 commit comments

Comments
 (0)