From e1467b9aac4d140e636ab6ba1da574a4ad52e199 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Tue, 30 Aug 2022 15:41:50 +0100 Subject: [PATCH] src/keyboard.c: stored handled keys as bound when window-cycling ...and changing TTY --- src/keyboard.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 1b033a41..6b306b7b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -134,7 +134,8 @@ handle_compositor_keybindings(struct wl_listener *listener, * Don't send any key events to clients when * changing tty */ - return true; + handled = true; + goto out; } } } @@ -147,7 +148,9 @@ handle_compositor_keybindings(struct wl_listener *listener, osd_preview_restore(server); /* osd_finish() additionally resets cycle_view to NULL */ 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 */ - return true; + handled = true; + goto out; } /* Handle compositor key bindings */ @@ -179,6 +183,7 @@ handle_compositor_keybindings(struct wl_listener *listener, } } +out: if (handled) { key_state_store_pressed_keys_as_bound(); }