Skip to content

Commit 2ad17d5

Browse files
authored
Merge branch 'main' into lenemter/fix-clipboard
2 parents 9268b0f + ee00380 commit 2ad17d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/WindowManager.vala

+7-3
Original file line numberDiff line numberDiff line change
@@ -1990,13 +1990,17 @@ namespace Gala {
19901990
var from_has_fullscreened = false;
19911991

19921992
// collect all windows and put them in the appropriate containers
1993-
foreach (unowned Meta.WindowActor actor in display.get_window_actors ()) {
1993+
var slist = new GLib.SList<Meta.Window> ();
1994+
display.list_all_windows ().@foreach ((win) => {
1995+
slist.append (win);
1996+
});
1997+
foreach (unowned var window in display.sort_windows_by_stacking (slist)) {
1998+
unowned var actor = (Meta.WindowActor) window.get_compositor_private ();
1999+
19942000
if (actor.is_destroyed ()) {
19952001
continue;
19962002
}
19972003

1998-
unowned var window = actor.get_meta_window ();
1999-
20002004
if (!window.showing_on_its_workspace () ||
20012005
move_primary_only && !window.is_on_primary_monitor () ||
20022006
window == moving ||

0 commit comments

Comments
 (0)