mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 21:30:36 +02:00
dix: don't try to create events if we don't have a screen. #16898
A NULL screen may happen during server shutdown, when the output has been shut
down but the devices still generate events.
X.Org Bug 16898 <http://bugs.freedesktop.org/show_bug.cgi?id=16898>
(cherry picked from commit 465a9bb96e)
This commit is contained in:
parent
745f476049
commit
c6d92c5206
1 changed files with 2 additions and 0 deletions
|
|
@ -535,6 +535,8 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons,
|
|||
ScreenPtr scr = miPointerGetScreen(pDev);
|
||||
|
||||
/* Sanity checks. */
|
||||
if (!scr) /* can happen during server shutdown */
|
||||
return 0;
|
||||
if (type != MotionNotify && type != ButtonPress && type != ButtonRelease)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue