mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
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.
This commit is contained in:
parent
e274c588c0
commit
763ba6209e
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
|
||||||
struct view *view;
|
struct view *view;
|
||||||
enum lab_view_criteria criteria =
|
enum lab_view_criteria criteria =
|
||||||
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE;
|
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) {
|
if (view->visible_on_all_workspaces) {
|
||||||
view_move_to_workspace(view, target);
|
view_move_to_workspace(view, target);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue