mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 06:28:07 +02:00
Maintain fake grab while pointer is inactive.
This commit is contained in:
parent
101dd82763
commit
0f2f7f081a
1 changed files with 10 additions and 1 deletions
|
|
@ -873,6 +873,8 @@ dmxDevicePointerActivate (DeviceIntPtr pDevice)
|
|||
|
||||
pDevPriv->active = TRUE;
|
||||
|
||||
dmxReleaseFakePointerGrab (pDevPriv->dmxInput);
|
||||
|
||||
if (pDevPriv->grabStatus != XCB_GRAB_STATUS_SUCCESS &&
|
||||
pDevPriv->grab.sequence == 0)
|
||||
{
|
||||
|
|
@ -935,7 +937,14 @@ dmxDevicePointerActivate (DeviceIntPtr pDevice)
|
|||
static void
|
||||
dmxDevicePointerDeactivate (DeviceIntPtr pDevice)
|
||||
{
|
||||
DMX_GET_DEVICE_PRIV (pDevice)->active = FALSE;
|
||||
dmxDevicePrivPtr pDevPriv = DMX_GET_DEVICE_PRIV (pDevice);
|
||||
|
||||
if (!pDevPriv->active)
|
||||
return;
|
||||
|
||||
pDevPriv->active = FALSE;
|
||||
|
||||
dmxFakePointerGrab (pDevPriv->dmxInput);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue