@@ -14,6 +14,7 @@ public class Gala.WindowOverview : ActorTarget, ActivatableComponent {
1414
1515 private GestureController gesture_controller; // Currently not used for actual touchpad gestures but only as controller
1616
17+ private Clutter . Actor background;
1718 private Clutter . Actor monitors;
1819 private ModalProxy modal_proxy;
1920
@@ -28,6 +29,18 @@ public class Gala.WindowOverview : ActorTarget, ActivatableComponent {
2829 enabled = false
2930 };
3031
32+ background = new Clutter .Actor () {
33+ #if HAS_MUTTER47
34+ background_color = Cogl.Color.from_string ("black ");
35+ #else
36+ background_color = Clutter.Color.from_string ("black ")
37+ #endif
38+ };
39+ background.add_constraint (new Clutter .BindConstraint (this , SIZE , 0 ));
40+ add_child (background );
41+
42+ add_target (new PropertyTarget (MULTITASKING_VIEW , background , "opacity ", typeof (uint ), 0u, 150u));
43+
3144 monitors = new ActorTarget ();
3245 add_child (monitors );
3346 }
@@ -75,17 +88,11 @@ public class Gala.WindowOverview : ActorTarget, ActivatableComponent {
7588 var windows = new List<Meta . Window > ();
7689 foreach (unowned var window_actor in wm. get_display (). get_window_actors ()) {
7790 var window = window_actor. meta_window;
78- if (ShellClientsManager . get_instance (). is_positioned_window (window)) {
79- continue ;
80- }
81-
82- if (window. window_type != Meta . WindowType . NORMAL &&
83- window. window_type != Meta . WindowType . DIALOG ||
91+ if (ShellClientsManager . get_instance (). is_positioned_window (window) ||
92+ window. window_type != NORMAL && window. window_type != DIALOG ||
8493 window. is_attached_dialog () ||
8594 ! (window. get_id () in window_ids)
8695 ) {
87- window_actor. hide ();
88-
8996 continue ;
9097 }
9198
0 commit comments