diff options
| author | 2026-04-13 16:16:25 -0400 | |
|---|---|---|
| committer | 2026-04-13 16:38:55 -0400 | |
| commit | 9913b7d590f46e59a475abbe85e70e02979d8d37 (patch) | |
| tree | 4cda8e52b89775bbeb082216f34d030d58161532 /src/window.c | |
| parent | d13e92193d21e112f45f3c92cf159f27498a3a55 (diff) | |
| download | stela-9913b7d590f46e59a475abbe85e70e02979d8d37.tar.gz stela-9913b7d590f46e59a475abbe85e70e02979d8d37.tar.bz2 stela-9913b7d590f46e59a475abbe85e70e02979d8d37.zip | |
Adjust window api, cleanup and update deps
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 7 |
1 files changed, 4 insertions, 3 deletions
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) |