dix: remove un-used parameter "core" from AllowSome

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-04-15 22:16:49 +10:00
parent bb5418d490
commit edb70caf21
3 changed files with 16 additions and 18 deletions

View File

@ -104,22 +104,22 @@ ProcXAllowDeviceEvents(ClientPtr client)
switch (stuff->mode) { switch (stuff->mode) {
case ReplayThisDevice: case ReplayThisDevice:
AllowSome(client, time, thisdev, NOT_GRABBED, FALSE); AllowSome(client, time, thisdev, NOT_GRABBED);
break; break;
case SyncThisDevice: case SyncThisDevice:
AllowSome(client, time, thisdev, FREEZE_NEXT_EVENT, FALSE); AllowSome(client, time, thisdev, FREEZE_NEXT_EVENT);
break; break;
case AsyncThisDevice: case AsyncThisDevice:
AllowSome(client, time, thisdev, THAWED, FALSE); AllowSome(client, time, thisdev, THAWED);
break; break;
case AsyncOtherDevices: case AsyncOtherDevices:
AllowSome(client, time, thisdev, THAW_OTHERS, FALSE); AllowSome(client, time, thisdev, THAW_OTHERS);
break; break;
case SyncAll: case SyncAll:
AllowSome(client, time, thisdev, FREEZE_BOTH_NEXT_EVENT, FALSE); AllowSome(client, time, thisdev, FREEZE_BOTH_NEXT_EVENT);
break; break;
case AsyncAll: case AsyncAll:
AllowSome(client, time, thisdev, THAWED_BOTH, FALSE); AllowSome(client, time, thisdev, THAWED_BOTH);
break; break;
default: default:
client->errorValue = stuff->mode; client->errorValue = stuff->mode;

View File

@ -1627,8 +1627,7 @@ void
AllowSome(ClientPtr client, AllowSome(ClientPtr client,
TimeStamp time, TimeStamp time,
DeviceIntPtr thisDev, DeviceIntPtr thisDev,
int newState, int newState)
Bool core)
{ {
Bool thisGrabbed, otherGrabbed, othersFrozen, thisSynced; Bool thisGrabbed, otherGrabbed, othersFrozen, thisSynced;
TimeStamp grabTime; TimeStamp grabTime;
@ -1770,28 +1769,28 @@ ProcAllowEvents(ClientPtr client)
switch (stuff->mode) switch (stuff->mode)
{ {
case ReplayPointer: case ReplayPointer:
AllowSome(client, time, mouse, NOT_GRABBED, True); AllowSome(client, time, mouse, NOT_GRABBED);
break; break;
case SyncPointer: case SyncPointer:
AllowSome(client, time, mouse, FREEZE_NEXT_EVENT, True); AllowSome(client, time, mouse, FREEZE_NEXT_EVENT);
break; break;
case AsyncPointer: case AsyncPointer:
AllowSome(client, time, mouse, THAWED, True); AllowSome(client, time, mouse, THAWED);
break; break;
case ReplayKeyboard: case ReplayKeyboard:
AllowSome(client, time, keybd, NOT_GRABBED, True); AllowSome(client, time, keybd, NOT_GRABBED);
break; break;
case SyncKeyboard: case SyncKeyboard:
AllowSome(client, time, keybd, FREEZE_NEXT_EVENT, True); AllowSome(client, time, keybd, FREEZE_NEXT_EVENT);
break; break;
case AsyncKeyboard: case AsyncKeyboard:
AllowSome(client, time, keybd, THAWED, True); AllowSome(client, time, keybd, THAWED);
break; break;
case SyncBoth: case SyncBoth:
AllowSome(client, time, keybd, FREEZE_BOTH_NEXT_EVENT, True); AllowSome(client, time, keybd, FREEZE_BOTH_NEXT_EVENT);
break; break;
case AsyncBoth: case AsyncBoth:
AllowSome(client, time, keybd, THAWED_BOTH, True); AllowSome(client, time, keybd, THAWED_BOTH);
break; break;
default: default:
client->errorValue = stuff->mode; client->errorValue = stuff->mode;

View File

@ -353,8 +353,7 @@ extern void AllowSome(
ClientPtr /* client */, ClientPtr /* client */,
TimeStamp /* time */, TimeStamp /* time */,
DeviceIntPtr /* thisDev */, DeviceIntPtr /* thisDev */,
int /* newState */, int /* newState */);
Bool /* core */);
extern void ReleaseActiveGrabs( extern void ReleaseActiveGrabs(
ClientPtr client); ClientPtr client);