File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1990,13 +1990,17 @@ namespace Gala {
1990
1990
var from_has_fullscreened = false ;
1991
1991
1992
1992
// 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
+
1994
2000
if (actor. is_destroyed ()) {
1995
2001
continue ;
1996
2002
}
1997
2003
1998
- unowned var window = actor. get_meta_window ();
1999
-
2000
2004
if (! window. showing_on_its_workspace () ||
2001
2005
move_primary_only && ! window. is_on_primary_monitor () ||
2002
2006
window == moving ||
You can’t perform that action at this time.
0 commit comments