mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-09 10:48:48 +00: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user