minimal size and formatting

This commit is contained in:
2026-01-07 20:35:41 +07:00
parent d5f736d9a6
commit b5d5793aa8
11 changed files with 63 additions and 71 deletions
+3 -6
View File
@@ -4,18 +4,16 @@
void focus_toplevel(struct absinthe_toplevel *toplevel)
{
if (!toplevel) {
if (!toplevel)
return;
}
struct absinthe_server *server = toplevel->server;
struct wlr_seat *seat = server->seat;
struct wlr_surface *prev_surface = seat->keyboard_state.focused_surface;
struct wlr_surface *surface = toplevel->xdg_toplevel->base->surface;
if (surface == prev_surface) {
if (surface == prev_surface)
return;
}
if (prev_surface) {
struct wlr_xdg_toplevel *prev_toplevel = wlr_xdg_toplevel_try_from_wlr_surface(prev_surface);
@@ -28,7 +26,6 @@ void focus_toplevel(struct absinthe_toplevel *toplevel)
wl_list_insert(&server->toplevels, &toplevel->link);
wlr_xdg_toplevel_set_activated(toplevel->xdg_toplevel, true);
if (keyboard) {
if (keyboard)
wlr_seat_keyboard_notify_enter(seat, surface, keyboard->keycodes, keyboard->num_keycodes, &keyboard->modifiers);
}
}