layout functionality
This commit is contained in:
+3
-2
@@ -26,7 +26,7 @@ void focus_toplevel(struct absinthe_toplevel *toplevel)
|
||||
if (prev_surface) {
|
||||
struct wlr_xdg_toplevel *prev_toplevel = wlr_xdg_toplevel_try_from_wlr_surface(prev_surface);
|
||||
if (prev_toplevel) {
|
||||
// wlr_xdg_toplevel_set_activated(prev_toplevel, false);
|
||||
wlr_xdg_toplevel_set_activated(prev_toplevel, false);
|
||||
absinthe_toplevel_set_border_color(prev_toplevel->base->data, unfocused_border_color);
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,8 @@ 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);
|
||||
// wlr_xdg_toplevel_set_activated(toplevel->toplevel.xdg, true);
|
||||
if (!absinthe_toplevel_is_x11(toplevel))
|
||||
wlr_xdg_toplevel_set_activated(toplevel->toplevel.xdg, true);
|
||||
absinthe_toplevel_set_border_color(toplevel, focused_border_color);
|
||||
|
||||
if (keyboard)
|
||||
|
||||
Reference in New Issue
Block a user