summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mcwm.c b/mcwm.c
index baf4b3d..899ce27 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1520,9 +1520,12 @@ void events(void)
* We will get an EnterNotify if there's another window
* under the pointer so we can set the focus proper later.
*/
- if (focuswin->id == e->window)
+ if (NULL != focuswin)
{
- focuswin = NULL;
+ if (focuswin->id == e->window)
+ {
+ focuswin = NULL;
+ }
}
/*