mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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.
This commit is contained in:
parent
ee0ec9a453
commit
b523788c0e
1
conf.c
1
conf.c
@ -528,6 +528,7 @@ conf_grab_mouse(struct client_ctx *cc)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
warnx("strange button in mousebinding\n");
|
warnx("strange button in mousebinding\n");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
xu_btn_grab(cc->pwin, mb->modmask, button);
|
xu_btn_grab(cc->pwin, mb->modmask, button);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user