refactor code
This commit is contained in:
2
seat.c
2
seat.c
@ -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
1
xdg.c
@ -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;
|
||||||
|
Reference in New Issue
Block a user