@@ -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 }
@@ -72,17 +85,11 @@ public class Gala.WindowOverview : ActorTarget, ActivatableComponent {
7285 var windows = new List<Meta . Window > ();
7386 foreach (unowned var window_actor in wm. get_display (). get_window_actors ()) {
7487 var window = window_actor. meta_window;
75- if (ShellClientsManager . get_instance (). is_positioned_window (window)) {
76- continue ;
77- }
78-
79- if (window. window_type != Meta . WindowType . NORMAL &&
80- window. window_type != Meta . WindowType . DIALOG ||
88+ if (ShellClientsManager . get_instance (). is_positioned_window (window) ||
89+ window. window_type != NORMAL && window. window_type != DIALOG ||
8190 window. is_attached_dialog () ||
8291 window_ids != null && ! (window. get_id () in window_ids)
8392 ) {
84- window_actor. hide ();
85-
8693 continue ;
8794 }
8895
0 commit comments