diff options
author | oga <oga> | 2009-01-08 21:35:19 +0000 |
---|---|---|
committer | oga <oga> | 2009-01-08 21:35:19 +0000 |
commit | b523788c0e61249cf8a1f33b5b96b42c83f129eb (patch) | |
tree | 416faa4177ab3416fb8b7bb7021459a71677b4e2 /conf.c | |
parent | ee0ec9a4537c9eb57fa319b6fcfec0ba4689818f (diff) | |
download | cwm-b523788c0e61249cf8a1f33b5b96b42c83f129eb.tar.gz cwm-b523788c0e61249cf8a1f33b5b96b42c83f129eb.tar.xz cwm-b523788c0e61249cf8a1f33b5b96b42c83f129eb.zip |
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.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |