Commit 89b37de7 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Init.c: Initialize nxagentGrabServerInfo

Fixes ArcticaProject/nx-libs#983
parent ad275d50
......@@ -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)
......
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