]> git.sur5r.net Git - i3/i3/commit
Only grab the mouse buttons that need to be grabbed. (#2290)
authorIngo Bürk <admin@airblader.de>
Wed, 13 Apr 2016 17:45:57 +0000 (19:45 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Wed, 13 Apr 2016 17:45:57 +0000 (10:45 -0700)
commit83c8740bf143c213ce4a6ce1f9c39095cafe7435
tree4b93778a0d1ceeb43e22e2935b3821a7d02fe358
parent006058619080e25fdf3e2b30f7678da4bcad178c
Only grab the mouse buttons that need to be grabbed. (#2290)

This is a followup to #2049. While we had fixed that bug by only grabbing
buttons 4 and 5 if there is a whole-window binding for that button, this
did not consider buttons higher than 5 as found on many mice.

Therefore, we now ditch the special handling for scrollwheel buttons and
instead do the same for all buttons higher than 3.

fixes #2271
include/bindings.h
include/xcb.h
src/bindings.c
src/manage.c
src/xcb.c