diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2021-01-12 22:11:49 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-01-12 22:13:12 +0100 |
commit | 89b37de7c923337cc403480e6db44000bdd0674a (patch) | |
tree | fc97df448e1dde1cd3513d701bcb431dce6b60ee /nx-X11 | |
parent | ad275d50720fbbaf65bc0668eed0297df5d27cad (diff) | |
download | nx-libs-89b37de7c923337cc403480e6db44000bdd0674a.tar.gz nx-libs-89b37de7c923337cc403480e6db44000bdd0674a.tar.bz2 nx-libs-89b37de7c923337cc403480e6db44000bdd0674a.zip |
Init.c: Initialize nxagentGrabServerInfo
Fixes ArcticaProject/nx-libs#983
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Init.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c index b06d8e239..4e2b28a59 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Init.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c @@ -610,7 +610,14 @@ void OsVendorEndRedirectErrorFFunction(void) nxagentEndRedirectToClientsLog(); } -ServerGrabInfoRec nxagentGrabServerInfo; + +/* + * In an uninialized nxagentGrabServerInfo .grabstate is 0 which is the + * value of SERVER_GRABBED. Therefore we need to initialize .grabstate + * with SERVER_UNGRABBED. A check in Screen.c would go wrong + * otherwise. + */ +ServerGrabInfoRec nxagentGrabServerInfo = {.grabstate = SERVER_UNGRABBED, .client = NULL}; static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data, void *args) |