aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXevents.c73
1 files changed, 20 insertions, 53 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
index 5baadde35..606b5e3b8 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXevents.c
@@ -230,59 +230,26 @@ DeactivatePointerGrab(register DeviceIntPtr mouse)
#endif
}
-// int
-// ProcAllowEvents(register ClientPtr client)
-// {
-// TimeStamp time;
-// DeviceIntPtr mouse = inputInfo.pointer;
-// DeviceIntPtr keybd = inputInfo.keyboard;
-// REQUEST(xAllowEventsReq);
-//
-// REQUEST_SIZE_MATCH(xAllowEventsReq);
-// time = ClientTimeToServerTime(stuff->time);
-// switch (stuff->mode)
-// {
-// case ReplayPointer:
-// AllowSome(client, time, mouse, NOT_GRABBED);
-// break;
-// case SyncPointer:
-// AllowSome(client, time, mouse, FREEZE_NEXT_EVENT);
-// break;
-// case AsyncPointer:
-// AllowSome(client, time, mouse, THAWED);
-// break;
-// case ReplayKeyboard:
-// AllowSome(client, time, keybd, NOT_GRABBED);
-// break;
-// case SyncKeyboard:
-// AllowSome(client, time, keybd, FREEZE_NEXT_EVENT);
-// break;
-// case AsyncKeyboard:
-// AllowSome(client, time, keybd, THAWED);
-// break;
-// case SyncBoth:
-// AllowSome(client, time, keybd, FREEZE_BOTH_NEXT_EVENT);
-// break;
-// case AsyncBoth:
-// AllowSome(client, time, keybd, THAWED_BOTH);
-// break;
-// default:
-// client->errorValue = stuff->mode;
-// return BadValue;
-// }
-//
-// /*
-// * This is not necessary if we export grab to X as asynchronous.
-// *
-// * if (nxagentOption(Rootless) && stuff -> mode != ReplayKeyboard &&
-// * stuff -> mode != SyncKeyboard && stuff -> mode != AsyncKeyboard)
-// * {
-// * XAllowEvents(nxagentDisplay, stuff -> mode, CurrentTime);
-// * }
-// */
-//
-// return Success;
-// }
+int
+ProcAllowEvents(register ClientPtr client)
+{
+ int rc = xorg_ProcAllowEvents(client);
+
+ if (rc != Success)
+ return rc;
+
+ /*
+ * This is not necessary if we export grab to X as asynchronous.
+ *
+ * if (nxagentOption(Rootless) && stuff -> mode != ReplayKeyboard &&
+ * stuff -> mode != SyncKeyboard && stuff -> mode != AsyncKeyboard)
+ * {
+ * XAllowEvents(nxagentDisplay, stuff -> mode, CurrentTime);
+ * }
+ */
+
+ return Success;
+}
static WindowPtr
XYToWindow(int x, int y)