aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga2009-01-08 21:35:19 +0000
committeroga2009-01-08 21:35:19 +0000
commit3a0ab406e22b0496a118a761e757538e67c8c520 (patch)
tree268675e8faecdb30b05c6c45974746c6085d2783
parentc1bcb9292d579abe22d563e8c9689d2d71172c52 (diff)
downloadcwm-3a0ab406e22b0496a118a761e757538e67c8c520.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 0936887..3c17492 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: conf.c,v 1.50 2008/07/22 20:51:54 oga Exp $
+ * $Id: conf.c,v 1.51 2009/01/08 21:35:19 oga Exp $
*/
#include "headers.h"
@@ -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);
}