aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xfixes/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/xfixes/select.c')
-rw-r--r--nx-X11/programs/Xserver/xfixes/select.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/select.c b/nx-X11/programs/Xserver/xfixes/select.c
index b21301d1c..e457fd5cc 100644
--- a/nx-X11/programs/Xserver/xfixes/select.c
+++ b/nx-X11/programs/Xserver/xfixes/select.c
@@ -1,6 +1,4 @@
/*
- * $Id: select.c,v 1.6 2005/07/03 07:37:35 daniels Exp $
- *
* Copyright © 2002 Keith Packard
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@ -195,12 +193,21 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
{
REQUEST (xXFixesSelectSelectionInputReq);
WindowPtr pWin;
+#ifndef NXAGENT_SERVER
+ int rc;
+#endif
REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq);
+#ifndef NXAGENT_SERVER
+ rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
+ if (rc != Success)
+ return rc;
+#else
pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client,
- DixReadAccess);
+ DixReadAccess);
if (!pWin)
return(BadWindow);
+#endif
if (stuff->eventMask & ~SelectionAllEvents)
{
client->errorValue = stuff->eventMask;