aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-02 08:52:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-02 08:52:05 +0000
commitd6b1dbf8d9e9e9e87fd9d1a930f52a9cf1b7d404 (patch)
treefd8e97a2a2e6f15c220a398d35b9ce10500af9bf /selection.h
parentterm: term_mouse_grabbed: return true if mouse tracking is disabled (diff)
input: don’t execute mouse bindings when the application is grabbing the mouse
When the application is grabbing the mouse, we require ‘shift’ to be pressed to be able to use foot’s mouse bindings. Otherwise the mouse event is sent to the application. This wasn’t being enforced consistently; each and every mouse **only** action was checking the mouse grab state, but e.g. *primary paste* (which can be used as both a key binding and a mouse binding) was not. The fix is actually quite simple: don’t even try to execute *any* mouse bindings when the application is grabbing the mouse (unless shift is pressed). This fixes an issue where e.g. middle mouse button events (using the default mouse bindings) were never seen by any mouse grabbing client applications.
Diffstat (limited to 'selection.h')
0 files changed, 0 insertions, 0 deletions