aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-30 08:54:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-30 08:54:58 +0000
commit515a139c287e6734d9e0512cfc41afbea43fd426 (patch)
tree0e3bc3ffb518f1ab348666bbe2e6fb13f5a5f848 /input.c
parentterm: free vt.osc8.uri when destroying a terminal (diff)
parentrevert: input: do not include consumed modifiers in the set sent to the client (diff)
Merge branch 'revert-remove-consumed-modifiers-from-set-sent-to-client'
Closes #425
Diffstat (limited to 'input.c')
-rw-r--r--input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/input.c b/input.c
index 9a26e778..320b1679 100644
--- a/input.c
+++ b/input.c
@@ -1026,10 +1026,10 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
*/
enum modifier keymap_mods = MOD_NONE;
- keymap_mods |= mods & ~consumed & shift ? MOD_SHIFT : MOD_NONE;
- keymap_mods |= mods & ~consumed & alt ? MOD_ALT : MOD_NONE;
- keymap_mods |= mods & ~consumed & ctrl ? MOD_CTRL : MOD_NONE;
- keymap_mods |= mods & ~consumed & meta ? MOD_META : MOD_NONE;
+ keymap_mods |= seat->kbd.shift ? MOD_SHIFT : MOD_NONE;
+ keymap_mods |= seat->kbd.alt ? MOD_ALT : MOD_NONE;
+ keymap_mods |= seat->kbd.ctrl ? MOD_CTRL : MOD_NONE;
+ keymap_mods |= seat->kbd.meta ? MOD_META : MOD_NONE;
const struct key_data *keymap;
if (sym == XKB_KEY_Escape && keymap_mods == MOD_NONE && term->modify_escape_key) {
@@ -1113,7 +1113,7 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
}
else {
- if (mods & ~consumed & alt) {
+ if (mods & alt) {
/*
* When the alt modifier is pressed, we do one out of three things:
*