summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-30 08:33:35 +0200
committerMC <mc@brain.hack.org>2010-06-30 08:33:35 +0200
commitd67836f87a6fcab03edad8e8fe4621b479f9c58c (patch)
treef041a0075c1edddefa162743da7db71a8b4eda85
parent11bd1ce63427784d32538cd82d49f65af9eacb12 (diff)
downloadmcwm-d67836f87a6fcab03edad8e8fe4621b479f9c58c.zip
Don't check for sameness if focuswin is NULL already.
-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;
+ }
}
/*