diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/menus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/menus.c b/src/menus.c index bc688e6..34a3c8e 100644 --- a/src/menus.c +++ b/src/menus.c @@ -511,13 +511,16 @@ UpdateMenu() if (Event.type != MotionNotify) continue; + + if (!ActiveMenu) + continue; done = FALSE; XQueryPointer( dpy, ActiveMenu->w, &JunkRoot, &JunkChild, &x_root, &y_root, &x, &y, &JunkMask); /* if we haven't recieved the enter notify yet, wait */ - if (ActiveMenu && !ActiveMenu->entered) + if (!ActiveMenu->entered) continue; if (XFindContext(dpy, ActiveMenu->w, ScreenContext, &context_data) == 0) |