refactor code

This commit is contained in:
DL
2025-07-10 09:57:29 +02:00
parent 9cc2408dc8
commit 2cc5bb045b
2 changed files with 1 additions and 2 deletions

2
seat.c
View File

@ -116,7 +116,7 @@ static void keyboard_handle_key(
* process it as a compositor keybinding. */ * process it as a compositor keybinding. */
for (int i = 0; i < nsyms; i++) for (int i = 0; i < nsyms; i++)
{ {
handled = handle_keybinding(keyboard->input.seat->server, syms[i]); handled |= handle_keybinding(keyboard->input.seat->server, syms[i]);
} }
} }

1
xdg.c
View File

@ -75,7 +75,6 @@ static void xdg_toplevel_commit(struct wl_listener *listener, void *data)
if (serial > 0 && serial == toplevel->xdg_surface->current.configure_serial) if (serial > 0 && serial == toplevel->xdg_surface->current.configure_serial)
{ {
wlr_log(WLR_INFO, "xdg_toplevel_commit: wl_event_source_remove");
wl_event_source_remove(toplevel->configuration_timeout); wl_event_source_remove(toplevel->configuration_timeout);
toplevel->configuration_serial = 0; toplevel->configuration_serial = 0;
toplevel->configuration_timeout = NULL; toplevel->configuration_timeout = NULL;