mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 14:20:12 +01:00
core devices: clear devicePrivates on close
This commit is contained in:
parent
539d1f3347
commit
9f188416bb
1 changed files with 5 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ CoreKeyboardProc(DeviceIntPtr pDev, int what)
|
|||
* ... yeah.
|
||||
*/
|
||||
pDev->key->xkbInfo = NULL;
|
||||
pDev->devPrivates[CoreDevicePrivatesIndex].ptr = NULL;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -298,6 +299,10 @@ CorePointerProc(DeviceIntPtr pDev, int what)
|
|||
pDev->valuator->lasty = pDev->valuator->axisVal[1];
|
||||
break;
|
||||
|
||||
case DEVICE_CLOSE:
|
||||
pDev->devPrivates[CoreDevicePrivatesIndex].ptr = NULL;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue