]> git.mdlowis.com Git - proto/labwc.git/commit
fix cycle_view for bindings other than Alt_L
authorDaniel Barlow <dan@telent.net>
Sat, 28 Aug 2021 17:42:18 +0000 (18:42 +0100)
committerDaniel Barlow <dan@telent.net>
Sat, 28 Aug 2021 17:42:18 +0000 (18:42 +0100)
commit864746e5737ba78fbec24d490a16f5525de46f82
tree4d112f2860d7bc4322042dcf42f8b89a21e09bdf
parent824282dd2e35d6f5ee7a0e7ded936761b9d1a2b4
fix cycle_view for bindings other than Alt_L

Change the code that detects when to stop cycling the view,
so that instead of looking for the left Alt key release it
looks for all modifiers released (thus. will work whether you
have this action bound to Alt-Tab, C-Tab, Meta-Tab, etc)

To do this we move the test from keyboard_key.notify to
the later signal keyboard_modifiers.notify, because the xkb_state
has been updated by then and the modifier state will be
accurate
src/keyboard.c