]> git.sur5r.net Git - i3/i3/commitdiff
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)
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


No differences found