summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-01-08 21:35:20 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-01-08 21:35:20 +0000
commit4040f216e946d5852e2c5c0ee30923153222451f (patch)
tree857b7a06c46c9fbfd5105cbd5117f8a8644b2361 /app
parentb8586c807bad0e838dcc94733492b1d9824e6643 (diff)
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 'app')
-rw-r--r--app/cwm/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 09368872a..3c174925e 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/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);
}