mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-03 08:00:42 +02:00
dix: ensure Activate/DeactivateGrab has a valid value.
Xephyr doesn't manually set Activate/DeactivateGrab for new devices, resulting in a NULL-pointer dereference later when a grab is activated. Avoid the segfault by ensuring that the pointer is always valid. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e3f296d91d
commit
fdce58ca82
1 changed files with 2 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ AddInputDevice(ClientPtr client, DeviceProc deviceProc, Bool autoStart)
|
|||
|
||||
/* device grab defaults */
|
||||
dev->deviceGrab.grabTime = currentTime;
|
||||
dev->deviceGrab.ActivateGrab = ActivateKeyboardGrab;
|
||||
dev->deviceGrab.DeactivateGrab = DeactivateKeyboardGrab;
|
||||
|
||||
dev->coreEvents = TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue