diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:05 +0000 |
| commit | d6b1dbf8d9e9e9e87fd9d1a930f52a9cf1b7d404 (patch) | |
| tree | fd8e97a2a2e6f15c220a398d35b9ce10500af9bf /selection.h | |
| parent | term: 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
