diff options
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Init.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Init.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c index 4f675a630..f4fc3c7e5 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Init.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c @@ -128,6 +128,10 @@ void OsVendorEndRedirectErrorFFunction(); * new X server tree. */ + +static void nxagentGrabServerCallback(CallbackListPtr *callbacks, pointer data, + pointer args); + #ifdef NXAGENT_UPGRADE void ddxInitGlobals(void) @@ -209,6 +213,11 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) NXUnsetLibraryPath(1); + if (serverGeneration == 1) + { + AddCallback(&ServerGrabCallback, nxagentGrabServerCallback, NULL); + } + if (nxagentUserDefinedFontPath == 0) { #ifdef TEST @@ -479,6 +488,17 @@ void OsVendorEndRedirectErrorFFunction() int SelectWaitTime = 10000; /* usec */ #endif +ServerGrabInfoRec nxagentGrabServerInfo; + +static void nxagentGrabServerCallback(CallbackListPtr *callbacks, pointer data, + pointer args) +{ + ServerGrabInfoRec *grab = (ServerGrabInfoRec*)args; + + nxagentGrabServerInfo.client = grab->client; + nxagentGrabServerInfo.grabstate = grab->grabstate; +} + #ifdef DPMSExtension void DPMSSet(int level) |