s/focused_view/active_view/

This commit is contained in:
Johan Malm 2023-12-19 17:45:11 +00:00 committed by Johan Malm
parent 447c67df62
commit 3a959cc74b
9 changed files with 28 additions and 24 deletions

View file

@ -310,7 +310,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
* Only refocus if the focus is not already on an always-on-top view.
*/
if (update_focus) {
struct view *view = server->focused_view;
struct view *view = server->active_view;
if (!view || !view_is_always_on_top(view)) {
desktop_focus_topmost_view(server);
}