resize clip

This commit is contained in:
2026-04-25 18:11:07 +07:00
parent 61439a9390
commit 3cfa46d476
3 changed files with 33 additions and 36 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ void focus_toplevel(struct absinthe_toplevel *toplevel)
struct wlr_surface *prev_surface = seat->keyboard_state.focused_surface;
struct wlr_surface *surface;
#ifdef XWAYLAND
if (absinthe_toplevel_is_x11(toplevel))
if (toplevel->type == ABSINTHE_TOPLEVEL_X11)
surface = toplevel->toplevel.x11->surface;
else
#endif
@@ -37,7 +37,7 @@ void focus_toplevel(struct absinthe_toplevel *toplevel)
wlr_scene_node_raise_to_top(&toplevel->scene_tree->node);
wl_list_remove(&toplevel->flink);
wl_list_insert(&server->focus_stack, &toplevel->flink);
if (!absinthe_toplevel_is_x11(toplevel))
if (toplevel->type != ABSINTHE_TOPLEVEL_X11)
wlr_xdg_toplevel_set_activated(toplevel->toplevel.xdg, true);
absinthe_toplevel_set_border_color(toplevel, focused_border_color);