diff options
author | MC <mc@hack.org> | 2010-06-30 08:33:35 +0200 |
---|---|---|
committer | MC <mc@brain.hack.org> | 2010-06-30 08:33:35 +0200 |
commit | d67836f87a6fcab03edad8e8fe4621b479f9c58c (patch) | |
tree | f041a0075c1edddefa162743da7db71a8b4eda85 | |
parent | 11bd1ce63427784d32538cd82d49f65af9eacb12 (diff) | |
download | mcwm-d67836f87a6fcab03edad8e8fe4621b479f9c58c.zip |
Don't check for sameness if focuswin is NULL already.
-rw-r--r-- | mcwm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; + } } /* |