dix: call SetFocusOut and LeaveWindow when disabling a device.
PointerWindows[x] would be set after removing a master pointer. Destroying this window then crashed the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -166,7 +166,7 @@ EnterWindow(DeviceIntPtr dev, WindowPtr win, int mode)
|
||||
/**
|
||||
* Unset the presence flag for dev to mark that it is not in 'win' anymore.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
LeaveWindow(DeviceIntPtr dev)
|
||||
{
|
||||
PointerWindows[dev->id] = NULL;
|
||||
|
||||
Reference in New Issue
Block a user