resize clip
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user