From b523788c0e61249cf8a1f33b5b96b42c83f129eb Mon Sep 17 00:00:00 2001 From: oga Date: Thu, 8 Jan 2009 21:35:19 +0000 Subject: [PATCH] If the mousebutton is unknown when we go to grab, don't just print a warning, but also skip the XGrabButton call. Noticed by code inspection by okan@, but we agreed my fix was cleaner. ok okan. --- conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/conf.c b/conf.c index be80de9..d874050 100644 --- a/conf.c +++ b/conf.c @@ -528,6 +528,7 @@ conf_grab_mouse(struct client_ctx *cc) break; default: warnx("strange button in mousebinding\n"); + continue; } xu_btn_grab(cc->pwin, mb->modmask, button); }