summary refs log tree commit diff
diff options
context:
space:
mode:
authoroga <oga>2009-01-08 21:35:19 +0000
committeroga <oga>2009-01-08 21:35:19 +0000
commitb523788c0e61249cf8a1f33b5b96b42c83f129eb (patch)
tree416faa4177ab3416fb8b7bb7021459a71677b4e2
parentee0ec9a4537c9eb57fa319b6fcfec0ba4689818f (diff)
downloadcwm-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.
-rw-r--r--conf.c1
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);
 	}