summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2012-11-26 12:04:16 +0000
committerAdam Tkac <atkac@redhat.com>2012-11-26 12:04:16 +0000
commit04628cde5684017d459c84c4c71634d7671c51de (patch)
tree51cd50f3b88e072402523f789454ea7e0a7ee960 /unix
parent3fab3e1ca1fa0fb1c5024a42a9aff15e43193f20 (diff)
downloadtigervnc-04628cde5684017d459c84c4c71634d7671c51de.tar.gz
tigervnc-04628cde5684017d459c84c4c71634d7671c51de.zip
Allow to change "AcceptPointerEvents" via "vncconfig -set".
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5015 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/vncExtInit.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc
index 0cac065b..95c84ffe 100644
--- a/unix/xserver/hw/vnc/vncExtInit.cc
+++ b/unix/xserver/hw/vnc/vncExtInit.cc
@@ -591,11 +591,12 @@ static int ProcVncExtSetParam(ClientPtr client)
value1 = desktop1->getValueStr();
/*
- * Allow to change only clipboard parameters and desktop name.
+ * Allow to change only certain parameters.
* Changing other parameters (for example PAM service name)
* could have negative security impact.
*/
if (strncasecmp(param.buf, "desktop", 7) != 0 &&
+ strncasecmp(param.buf, "AcceptPointerEvents", 19) != 0 &&
(noclipboard || strncasecmp(param.buf, "SendCutText", 11) != 0) &&
(noclipboard || strncasecmp(param.buf, "AcceptCutText", 13) != 0))
goto deny;