Commit 0cf283dc authored by Mike Gabriel's avatar Mike Gabriel

Add 206_nxagent_clipboard-as-nxoption.full.patch. Make the clipboard option…

Add 206_nxagent_clipboard-as-nxoption.full.patch. Make the clipboard option configurable in nxagent via NX options as addition to the command line parameter -clipboard. Note that the command line parameter overrides the clipboard NX option. Possible values are both or 1, client, server, none or 0.
parent c62b8130
......@@ -29,6 +29,11 @@ nx-libs (2:3.5.0.25-0x2go1) UNRELEASED; urgency=low
* Add 302_nx-X11_xkbbasedir-detection.patch. For detecting XkbBaseDir
test for xkb/rules/base instead of testing for deprecated file
xkb/keymap.dir. (Fixes: #40).
* Add 206_nxagent_clipboard-as-nxoption.full.patch. Make the clipboard
option configurable in nxagent via NX options as addition to the
command line parameter -clipboard. Note that the command line
parameter overrides the clipboard NX option. Possible values are
both or 1, client, server, none or 0.
* Update patches, to make them apply cleanly after above changes:
+ 220_nxproxy-bind-loopback-only.full+lite.patch
......
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -984,7 +984,7 @@
if (!strcmp(argv[i], "-clipboard"))
{
- if (!strcmp(argv[i+1], "both"))
+ if ((!strcmp(argv[i+1], "both")) || (!strcmp(argv[i+1], "1")))
{
nxagentChangeOption(Clipboard, ClipboardBoth);
}
@@ -996,7 +996,7 @@
{
nxagentChangeOption(Clipboard, ClipboardServer);
}
- else if (!strcmp(argv[i+1], "none"))
+ else if ((!strcmp(argv[i+1], "none")) || (!strcmp(argv[i+1], "1")))
{
nxagentChangeOption(Clipboard, ClipboardNone);
}
@@ -1255,6 +1255,29 @@
return;
}
+ else if (strcmp(name, "clipboard") == 0)
+ {
+ if ((strcmp(value, "both") == 0) || (strcmp(value, "1") == 0))
+ {
+ nxagentChangeOption(Clipboard, ClipboardBoth);
+ }
+ else if (strcmp(value, "client") == 0)
+ {
+ nxagentChangeOption(Clipboard, ClipboardClient);
+ }
+ else if (strcmp(value, "server") == 0)
+ {
+ nxagentChangeOption(Clipboard, ClipboardServer);
+ }
+ else if ((strcmp(value, "none") == 0) || (strcmp(value, "0") == 0))
+ {
+ nxagentChangeOption(Clipboard, ClipboardNone);
+ }
+ else
+ {
+ nxagentChangeOption(Clipboard, ClipboardBoth);
+ }
+ }
else
{
#ifdef DEBUG
......@@ -23,7 +23,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
else if (!strcmp(name, "fullscreen"))
{
if (nxagentReconnectTrap == True)
@@ -1362,6 +1368,11 @@
@@ -1385,6 +1391,11 @@
validateString(nxagentOptionFile));
#endif
......
......@@ -48,6 +48,7 @@
203_nxagent_disable-rootless-exit.full.patch
204_nxagent_repaint-solidpict.full.patch
205_nxagent_refresh-adsl.full.patch
206_nxagent_clipboard-as-nxoption.full.patch
209_x2goagent_add-man-page.full.patch
220_nxproxy_bind-loopback-only.full+lite.patch
300_nxagent_set-wm-class.full.patch
......
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