From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Tue, 12 Nov 2024 19:35:00 +0000 (+0100) Subject: workspaces: use view_for_each_reverse() to move omnipresent views X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=763ba6209ed401e24318353367f5654506abc893;p=proto%2Flabwc.git 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. --- 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); }