From 9913b7d590f46e59a475abbe85e70e02979d8d37 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Apr 2026 16:16:25 -0400 Subject: Adjust window api, cleanup and update deps Signed-off-by: Andrew Opalach --- src/window.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index 0d448af..f85f4fc 100644 --- a/src/window.c +++ b/src/window.c @@ -45,11 +45,12 @@ static bool nop_key_callback(void *userdata, u8 state, u16 button) return false; } -static void nop_key_immediate_callback(void *userdata, u8 state, u16 button) +static bool nop_key_immediate_callback(void *userdata, u8 state, u16 button) { (void)userdata; (void)state; (void)button; + return false; } static void window_default_close(struct stl_window *window) @@ -227,10 +228,10 @@ void stl_window_send_key_event(struct stl_window *window, u8 state, u16 button) #endif } -void stl_window_send_key_immediate_event(struct stl_window *window, u8 state, u16 button) +bool stl_window_send_key_immediate_event(struct stl_window *window, u8 state, u16 button) { // Don't send modifiers on key immediate. - window->key_immediate_callback(window->userdata, state, button * (stl_key_to_mod(button) == STELA_MOD_NONE)); + return window->key_immediate_callback(window->userdata, state, button * (stl_key_to_mod(button) == STELA_MOD_NONE)); } void stl_window_drop_modifiers(struct stl_window *window) -- cgit v1.2.3-101-g0448