mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-19 22:48:10 +02:00
Merge remote-tracking branch 'whot/server-1.11-branch' into server-1.11-branch
This commit is contained in:
commit
82e0ae0423
4 changed files with 22 additions and 9 deletions
|
|
@ -528,12 +528,6 @@ ProcSELinuxDispatch(ClientPtr client)
|
|||
static int
|
||||
SProcSELinuxQueryVersion(ClientPtr client)
|
||||
{
|
||||
REQUEST(SELinuxQueryVersionReq);
|
||||
int n;
|
||||
|
||||
REQUEST_SIZE_MATCH(SELinuxQueryVersionReq);
|
||||
swaps(&stuff->client_major, n);
|
||||
swaps(&stuff->client_minor, n);
|
||||
return ProcSELinuxQueryVersion(client);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -927,7 +927,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
|
|||
|
||||
for (i = 0; mouse && mouse->button && i < mouse->button->numButtons; i++)
|
||||
if (BitIsOn(mouse->button->down, i))
|
||||
SetBit(event->buttons, i);
|
||||
SetBit(event->buttons, mouse->button->map[i]);
|
||||
|
||||
if (kbd && kbd->key)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -202,6 +202,19 @@ unwind:
|
|||
return rc;
|
||||
}
|
||||
|
||||
static void
|
||||
disable_clientpointer(DeviceIntPtr dev)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < currentMaxClients; i++)
|
||||
{
|
||||
ClientPtr client = clients[i];
|
||||
if (client && client->clientPtr == dev)
|
||||
client->clientPtr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
disable_clientpointer(DeviceIntPtr dev)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -140,11 +140,17 @@ ProcXIPassiveGrabDevice(ClientPtr client)
|
|||
memset(¶m, 0, sizeof(param));
|
||||
param.grabtype = GRABTYPE_XI2;
|
||||
param.ownerEvents = stuff->owner_events;
|
||||
param.this_device_mode = stuff->grab_mode;
|
||||
param.other_devices_mode = stuff->paired_device_mode;
|
||||
param.grabWindow = stuff->grab_window;
|
||||
param.cursor = stuff->cursor;
|
||||
|
||||
if (IsKeyboardDevice(dev)) {
|
||||
param.this_device_mode = stuff->grab_mode;
|
||||
param.other_devices_mode = stuff->paired_device_mode;
|
||||
} else {
|
||||
param.this_device_mode = stuff->paired_device_mode;
|
||||
param.other_devices_mode = stuff->grab_mode;
|
||||
}
|
||||
|
||||
if (stuff->cursor != None)
|
||||
{
|
||||
status = dixLookupResourceByType(&tmp, stuff->cursor,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue