]> git.sur5r.net Git - i3/i3/commit - include/xcb.h
Only grab scrollwheel buttons if necessary. 2061/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 11 Nov 2015 19:40:25 +0000 (20:40 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Sun, 15 Nov 2015 21:08:47 +0000 (22:08 +0100)
commit029d78c0bf771dd98f80699dcc16b3e962895455
treea7b8d8384029f9609231b4986c19ff6cebc80c4b
parent66882bf445970588c6c7a6a2c2e08a38ad0b9536
Only grab scrollwheel buttons if necessary.

With this patch, we only grab the scrollwheel buttons (4 and 5) when
managing a window if a whole window key binding exists for these buttons.

This allows both of these usecases:
  - Bindings to scrollwheel buttons using --whole-window (see #1701).
  - Scrolling in a window without focusing it if no such binding
    exists (see #2049).

Furthermore, we drop all button grabs and regrab them after a config
reload in order to reevaluate the new bindings correctly.

fixes #2049
include/bindings.h
include/xcb.h
src/bindings.c
src/config.c
src/manage.c
src/xcb.c