aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-01-22 15:39:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-01-24 18:57:32 +0000
commit4ee4f47065d7e1a77a18d3b029f94ccab8ddb3d3 (patch)
tree40c1f9448bd29f872cc5ab9329b1f283f0d3eade /selection.c
parentterminal: simplify some string-related code in reload_fonts() (diff)
input: kitty: update to latest version of the spec
Starting with kitty 0.32.0, the modifier bits during modifier key events behave differently, compared to before. Or, rather, they have now been spec:ed; before, behavior was different on e.g. MacOS, and Linux. The new behavior is this: On key press, the modifier bits in the kitty key event *includes* the pressed modifier key. On key release, the modifier bits in the kitty key event does *not* include the released modifier key. In other words, The modifier bits reflects the state *after* the key event. This is the exact opposite of what foot did before this patch. The patch is really pretty small: in order to include the key in the modifier set, we simulate a key press to update the XKB state, using xkb_state_uppate_key(). For key pressed, we simulate an XKB_KEY_DOWN event, and for key releases we simulate an XKB_KEY_UP event. Then we re-retrieve the modifers, both the full set, and the consumed set. Closes #1561
Diffstat (limited to 'selection.c')
0 files changed, 0 insertions, 0 deletions