@@ -1961,29 +1961,7 @@ namespace Gala {
19611961 }
19621962 main_container. add_child (static_windows);
19631963
1964- // if we have a move action, pack that window to the static ones
1965- if (moving != null ) {
1966- unowned var moving_actor = (Meta . WindowActor ) moving. get_compositor_private ();
1967-
1968- windows. prepend (moving_actor);
1969- parents. prepend (moving_actor. get_parent ());
1970-
1971- moving_actor. set_translation (- clone_offset_x, - clone_offset_y, 0 );
1972- clutter_actor_reparent (moving_actor, static_windows);
1973- }
1974-
19751964 unowned var grabbed_window = window_grab_tracker. current_window;
1976-
1977- if (grabbed_window != null ) {
1978- unowned var moving_actor = (Meta . WindowActor ) grabbed_window. get_compositor_private ();
1979-
1980- windows. prepend (moving_actor);
1981- parents. prepend (moving_actor. get_parent ());
1982-
1983- moving_actor. set_translation (- clone_offset_x, - clone_offset_y, 0 );
1984- clutter_actor_reparent (moving_actor, static_windows);
1985- }
1986-
19871965 var to_has_fullscreened = false ;
19881966 var from_has_fullscreened = false ;
19891967
@@ -1999,15 +1977,11 @@ namespace Gala {
19991977 continue ;
20001978 }
20011979
2002- if (! window. showing_on_its_workspace () ||
2003- move_primary_only && ! window. is_on_primary_monitor () ||
2004- window == moving ||
2005- window == grabbed_window) {
2006-
1980+ if (! window. showing_on_its_workspace () || move_primary_only && ! window. is_on_primary_monitor ()) {
20071981 continue ;
20081982 }
20091983
2010- if (window. on_all_workspaces) {
1984+ if (window. on_all_workspaces || window == moving || window == grabbed_window ) {
20111985 // notifications use their own group and are always on top
20121986 if (NotificationStack . is_notification (window)) {
20131987 continue ;
@@ -2019,8 +1993,8 @@ namespace Gala {
20191993 clutter_actor_reparent (actor, static_windows);
20201994 actor. set_translation (- clone_offset_x, - clone_offset_y, 0 );
20211995
2022- // Don't fade docks they just stay where they are
2023- if (window. window_type == DOCK ) {
1996+ // Don't fade docks and moving/grabbed windows they just stay where they are
1997+ if (window. window_type == DOCK || window == moving || window == grabbed_window ) {
20241998 continue ;
20251999 }
20262000
0 commit comments