diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-11-05 23:59:22 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-26 02:54:13 +0100 |
commit | d59e8d7f43d8a39155cb4d1884cf65b871fd3de6 (patch) | |
tree | 91e169bd6be9f5480cbf1a4ffcf8d85ecf6efa95 /nx-X11/programs/Xserver/xfixes/cursor.c | |
parent | 5706005f72d79716fadaabdb6d560bfeb30ff6df (diff) | |
download | nx-libs-d59e8d7f43d8a39155cb4d1884cf65b871fd3de6.tar.gz nx-libs-d59e8d7f43d8a39155cb4d1884cf65b871fd3de6.tar.bz2 nx-libs-d59e8d7f43d8a39155cb4d1884cf65b871fd3de6.zip |
Lift XFIXES to xorg-xserver-1.4.2 state
Diffstat (limited to 'nx-X11/programs/Xserver/xfixes/cursor.c')
-rw-r--r-- | nx-X11/programs/Xserver/xfixes/cursor.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/cursor.c b/nx-X11/programs/Xserver/xfixes/cursor.c index d372b476e..12efbd75f 100644 --- a/nx-X11/programs/Xserver/xfixes/cursor.c +++ b/nx-X11/programs/Xserver/xfixes/cursor.c @@ -238,12 +238,21 @@ ProcXFixesSelectCursorInput (ClientPtr client) { REQUEST (xXFixesSelectCursorInputReq); WindowPtr pWin; +#ifndef NXAGENT_SERVER + int rc; +#endif REQUEST_SIZE_MATCH (xXFixesSelectCursorInputReq); +#ifndef NXAGENT_SERVER + rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess); + if (rc != Success) + return rc; +#else pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client, DixReadAccess); if (!pWin) return(BadWindow); +#endif if (stuff->eventMask & ~CursorAllEvents) { client->errorValue = stuff->eventMask; |