Xi: don't attempt to send to a NULL window.
Only applicable when the server comes down/restarts. In this case, WindowTable[i] may be NULL. Let's not try to send an event then.
This commit is contained in:
parent
aec485f2dc
commit
f377141912
|
@ -1279,6 +1279,8 @@ SendEventToAllWindows(DeviceIntPtr dev, Mask mask, xEvent * ev, int count)
|
|||
|
||||
for (i = 0; i < screenInfo.numScreens; i++) {
|
||||
pWin = WindowTable[i];
|
||||
if (!pWin)
|
||||
continue;
|
||||
(void)DeliverEventsToWindow(pWin, ev, count, mask, NullGrab, dev->id);
|
||||
p1 = pWin->firstChild;
|
||||
FindInterestedChildren(dev, p1, mask, ev, count);
|
||||
|
|
Loading…
Reference in New Issue