src/keyboard.c: stored handled keys as bound when window-cycling

...and changing TTY
This commit is contained in:
Johan Malm 2022-08-30 15:41:50 +01:00
parent a363f73e02
commit e1467b9aac

View file

@ -134,7 +134,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
* Don't send any key events to clients when * Don't send any key events to clients when
* changing tty * changing tty
*/ */
return true; handled = true;
goto out;
} }
} }
} }
@ -147,7 +148,9 @@ handle_compositor_keybindings(struct wl_listener *listener,
osd_preview_restore(server); osd_preview_restore(server);
/* osd_finish() additionally resets cycle_view to NULL */ /* osd_finish() additionally resets cycle_view to NULL */
osd_finish(server); osd_finish(server);
return true;
handled = true;
goto out;
} }
} }
@ -169,7 +172,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
} }
} }
/* don't send any key events to clients when osd onscreen */ /* don't send any key events to clients when osd onscreen */
return true; handled = true;
goto out;
} }
/* Handle compositor key bindings */ /* Handle compositor key bindings */
@ -179,6 +183,7 @@ handle_compositor_keybindings(struct wl_listener *listener,
} }
} }
out:
if (handled) { if (handled) {
key_state_store_pressed_keys_as_bound(); key_state_store_pressed_keys_as_bound();
} }