diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-24 13:30:28 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-24 14:19:28 +0930 |
commit | f377141912594f87144d6d7f7fdd279a101d8e6c (patch) | |
tree | f029a1f818c201cc1b2e00dddc19f9daff105424 | |
parent | aec485f2dcc87b340759d67b60e7dee7931aaec5 (diff) |
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.
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index fb84bef6f..641bead33 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -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); |