mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-10 17:30:18 +01:00
dix: free the sprite when disabling the device
Disabled devices don't need sprites (they can't send events anyway) and the device init process is currently geared to check for whether sprite is present to check if the device should be paired/attached. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
e57d6a8902
commit
df1704365e
1 changed files with 2 additions and 0 deletions
|
|
@ -465,6 +465,8 @@ DisableDevice(DeviceIntPtr dev, BOOL sendevent)
|
|||
(void) (*dev->deviceProc) (dev, DEVICE_OFF);
|
||||
dev->enabled = FALSE;
|
||||
|
||||
FreeSprite(dev);
|
||||
|
||||
/* now that the device is disabled, we can reset the signal handler's
|
||||
* last.slave */
|
||||
OsBlockSignals();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue