diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-12-08 23:13:50 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-12-08 23:27:03 +0100 |
commit | 43e484887264595049da292148fcf01bc12a1acc (patch) | |
tree | 578b4f85251f44b7c3aaf8416fb1b1331b56a7e5 /gtk/gtkshortcutaction.h | |
parent | 80d4a08e306e36486e45542af0cdc58f5ad21e45 (diff) | |
download | gtk+-43e484887264595049da292148fcf01bc12a1acc.tar.gz |
gtk/main: Keep implicit grab until all buttons are released
Currently, the implicit grab is broken on the first button release,
in the case of pressing multiple buttons simultaneously. This means
that we emit crossing events early, and the next button releases
are sent to the pointer focus widget instead.
Consider the implicit grab effective until all buttons are released,
and only unset the pointer implicit grab (and emit crossing events)
after there are no further buttons pressed. We do this by checking
event modifiers, given button release events do contain the modifiers
in effect at the time the event was generated, we have to look for
exactly one active button modifier.
Fixes weird pointer states after pressing multiple buttons on a
widget.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3426
Diffstat (limited to 'gtk/gtkshortcutaction.h')
0 files changed, 0 insertions, 0 deletions