From 763ba6209ed401e24318353367f5654506abc893 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Tue, 12 Nov 2024 20:35:00 +0100 Subject: [PATCH] workspaces: use view_for_each_reverse() to move omnipresent views This ensures that the view ordering and focus behavior of omnipresent views is the same when switching workspaces. --- src/workspaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspaces.c b/src/workspaces.c index 190549e6..93bd0db6 100644 --- a/src/workspaces.c +++ b/src/workspaces.c @@ -323,7 +323,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus) struct view *view; enum lab_view_criteria criteria = LAB_VIEW_CRITERIA_CURRENT_WORKSPACE; - for_each_view(view, &server->views, criteria) { + for_each_view_reverse(view, &server->views, criteria) { if (view->visible_on_all_workspaces) { view_move_to_workspace(view, target); }