mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
input: ensure various ProcUngrabKey/Buttons have the right grabtype set.
This commit is contained in:
@@ -132,6 +132,7 @@ ProcXUngrabDeviceButton(ClientPtr client)
|
||||
temporaryGrab.device = dev;
|
||||
temporaryGrab.window = pWin;
|
||||
temporaryGrab.type = DeviceButtonPress;
|
||||
temporaryGrab.grabtype = GRABTYPE_XI;
|
||||
temporaryGrab.modifierDevice = mdev;
|
||||
temporaryGrab.modifiersDetail.exact = stuff->modifiers;
|
||||
temporaryGrab.modifiersDetail.pMask = NULL;
|
||||
|
||||
@@ -139,6 +139,7 @@ ProcXUngrabDeviceKey(ClientPtr client)
|
||||
temporaryGrab.device = dev;
|
||||
temporaryGrab.window = pWin;
|
||||
temporaryGrab.type = DeviceKeyPress;
|
||||
temporaryGrab.grabtype = GRABTYPE_XI;
|
||||
temporaryGrab.modifierDevice = mdev;
|
||||
temporaryGrab.modifiersDetail.exact = stuff->modifiers;
|
||||
temporaryGrab.modifiersDetail.pMask = NULL;
|
||||
|
||||
@@ -5003,6 +5003,7 @@ ProcUngrabKey(ClientPtr client)
|
||||
tempGrab.modifiersDetail.pMask = NULL;
|
||||
tempGrab.modifierDevice = GetPairedDevice(keybd);
|
||||
tempGrab.type = KeyPress;
|
||||
tempGrab.grabtype = GRABTYPE_CORE;
|
||||
tempGrab.detail.exact = stuff->key;
|
||||
tempGrab.detail.pMask = NULL;
|
||||
tempGrab.next = NULL;
|
||||
@@ -5197,6 +5198,7 @@ ProcUngrabButton(ClientPtr client)
|
||||
tempGrab.modifierDevice = GetPairedDevice(ptr);
|
||||
tempGrab.type = ButtonPress;
|
||||
tempGrab.detail.exact = stuff->button;
|
||||
tempGrab.grabtype = GRABTYPE_CORE;
|
||||
tempGrab.detail.pMask = NULL;
|
||||
tempGrab.next = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user