summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index d0d3802..60633fc 100644
--- a/menu.c
+++ b/menu.c
@@ -129,6 +129,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt,
 	    CurrentTime) != GrabSuccess) {
 		XftDrawDestroy(mc.xftdraw);
 		XDestroyWindow(X_Dpy, mc.win);
+		return(NULL);
 	}
 
 	XGetInputFocus(X_Dpy, &focuswin, &focusrevert);