@@ -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
@@ -74,17 +87,11 @@ public class Gala.WindowOverview : ActorTarget, ActivatableComponent {
7487 var windows = new List<Meta . Window > ();
7588 foreach (unowned var window_actor in wm. get_display (). get_window_actors ()) {
7689 var window = window_actor. meta_window;
77- if (ShellClientsManager . get_instance (). is_positioned_window (window)) {
78- continue ;
79- }
80-
81- if (window. window_type != Meta . WindowType . NORMAL &&
82- window. window_type != Meta . WindowType . DIALOG ||
90+ if (ShellClientsManager . get_instance (). is_positioned_window (window) ||
91+ window. window_type != NORMAL && window. window_type != DIALOG ||
8392 window. is_attached_dialog () ||
8493 window_ids != null && ! (window. get_id () in window_ids)
8594 ) {
86- window_actor. hide ();
87-
8895 continue ;
8996 }
9097
0 commit comments