Commit f887d428 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXevents.c: call upstream ProcAllocEvents()

Our version only adds some commented code, so it is not really necessary. But it is cleaner to handle it that way.
parent 582618af
......@@ -1436,7 +1436,11 @@ AllowSome(ClientPtr client, TimeStamp time, DeviceIntPtr thisDev, int newState)
}
int
#ifdef NXAGENT_SERVER
xorg_ProcAllowEvents(register ClientPtr client)
#else
ProcAllowEvents(register ClientPtr client)
#endif
{
TimeStamp time;
DeviceIntPtr mouse = inputInfo.pointer;
......
......@@ -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)
......
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