mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 23:50:12 +01:00
Ungrab pointer before calling DeactivateGrab.
This commit is contained in:
parent
3ee3336ac2
commit
c3f40d7171
1 changed files with 3 additions and 2 deletions
|
|
@ -293,12 +293,13 @@ dmxDeactivatePointerGrab (DeviceIntPtr pDev)
|
|||
dmxDevicePrivPtr pDevPriv = DMX_GET_DEVICE_PRIV (pDev);
|
||||
GrabPtr pGrab = pDev->deviceGrab.grab;
|
||||
|
||||
/* DeactivateGrab might call ActivateGrab so make sure we ungrab here */
|
||||
dmxUngrabPointer (pDev, pGrab);
|
||||
|
||||
DMX_UNWRAP (DeactivateGrab, pDevPriv, &pDev->deviceGrab);
|
||||
(*pDev->deviceGrab.DeactivateGrab) (pDev);
|
||||
DMX_WRAP (DeactivateGrab, dmxDeactivatePointerGrab, pDevPriv,
|
||||
&pDev->deviceGrab);
|
||||
|
||||
dmxUngrabPointer (pDev, pGrab);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue