Signed-off-by: Rami Ylimaki <[email protected]>
---
dix/events.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dix/events.c b/dix/events.c
index ec6aff7..448683f 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -5421,7 +5421,7 @@ DeleteWindowFromAnyEvents(WindowPtr pWin, Bool
freeResources)
/* If the focus window is a root window (ie. has no parent) then
don't
delete the focus from it. */
- if ((pWin == focus->win) && (pWin->parent != NullWindow))
+ if (focus && (pWin == focus->win) && (pWin->parent != NullWindow))
{
int focusEventMode = NotifyNormal;
--
1.6.0.4
_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel