@@ -15,6 +15,7 @@ public class Gala.WindowOverview : ActorTarget, RootTarget, ActivatableComponent
1515
1616 private GestureController gesture_controller; // Currently not used for actual touchpad gestures but only as controller
1717
18+ private Clutter . Actor background;
1819 private Clutter . Actor monitors;
1920 private ModalProxy modal_proxy;
2021
@@ -32,6 +33,18 @@ public class Gala.WindowOverview : ActorTarget, RootTarget, ActivatableComponent
3233 };
3334 add_gesture_controller (gesture_controller);
3435
36+ background = new Clutter .Actor () {
37+ #if HAS_MUTTER47
38+ background_color = Cogl.Color.from_string ("black ")
39+ #else
40+ background_color = Clutter.Color.from_string ("black ")
41+ #endif
42+ };
43+ background.add_constraint (new Clutter .BindConstraint (this , SIZE , 0 ));
44+ add_child (background );
45+
46+ add_target (new PropertyTarget (MULTITASKING_VIEW , background , "opacity ", typeof (uint ), 0u, 150u));
47+
3548 monitors = new ActorTarget ();
3649 add_child (monitors );
3750 }
@@ -71,19 +84,17 @@ public class Gala.WindowOverview : ActorTarget, RootTarget, ActivatableComponent
7184 window_ids = hints != null && " windows" in hints ? (uint64 []) hints[" windows" ] : null ;
7285
7386 var windows = new List<Meta . Window > ();
87+ #if HAS_MUTTER48
88+ foreach (unowned var window_actor in wm. get_display (). get_compositor (). get_window_actors ()) {
89+ #else
7490 foreach (unowned var window_actor in wm. get_display (). get_window_actors ()) {
91+ #endif
7592 var window = window_actor. meta_window;
76- if (ShellClientsManager . get_instance (). is_positioned_window (window)) {
77- continue ;
78- }
79-
80- if (window. window_type != Meta . WindowType . NORMAL &&
81- window. window_type != Meta . WindowType . DIALOG ||
93+ if (ShellClientsManager . get_instance (). is_positioned_window (window) ||
94+ window. window_type != NORMAL && window. window_type != DIALOG ||
8295 window. is_attached_dialog () ||
8396 window_ids != null && ! (window. get_id () in window_ids)
8497 ) {
85- window_actor. hide ();
86-
8798 continue ;
8899 }
89100
0 commit comments