aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-08-10 00:50:27 +0200
committerUlrich Sibiller <uli42@gmx.de>2017-08-10 23:48:09 +0200
commit715fcfe6dfc2be12eb6673d2a5e5672af18f9291 (patch)
tree6bfdeb4cf99ec22f0a6fe60ff7a9e9a792105156 /nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
parent8235925a2c3599a8980ce789e0a79369118727fe (diff)
downloadnx-libs-715fcfe6dfc2be12eb6673d2a5e5672af18f9291.tar.gz
nx-libs-715fcfe6dfc2be12eb6673d2a5e5672af18f9291.tar.bz2
nx-libs-715fcfe6dfc2be12eb6673d2a5e5672af18f9291.zip
Set NX_AGENT_VERSION property for root window
Fixes ArcticaProject/nx-libs#500
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXproperty.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXproperty.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c b/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
index ee77eb64e..882dbe61b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
@@ -169,6 +169,15 @@ ProcChangeProperty(ClientPtr client)
}
#endif
+#ifdef NXAGENT_SERVER
+ /* prevent clients from changing the NX_AGENT_VERSION property */
+ {
+ Atom prop = MakeAtom("NX_AGENT_VERSION", strlen("NX_AGENT_VERSION"), True);
+ if (stuff->property == prop)
+ return client->noClientException;
+ }
+#endif
+
err = ChangeWindowProperty(pWin, stuff->property, stuff->type, (int)format,
(int)mode, len, (void *)&stuff[1], TRUE);
if (err != Success)