@@ -21,6 +21,7 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
2121
2222 private Clutter . Clone clone; // clone itself
2323 private Clutter . Actor clone_container; // clips the clone
24+ private Clutter . Actor rounded_container; // draws rounded corners
2425 private Clutter . Actor container; // draws the shadow
2526 private Gala . CloseButton close_button;
2627 private Clutter . Actor resize_button;
@@ -74,10 +75,14 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
7475 };
7576 clone_container. add_child (clone);
7677
78+ rounded_container = new Clutter .Actor ();
79+ rounded_container. add_child (clone_container);
80+ rounded_container. add_effect (new RoundedCornersEffect (9 , scale));
81+
7782 container = new Clutter .Actor () {
7883 reactive = true
7984 };
80- container. add_child (clone_container );
85+ container. add_child (rounded_container );
8186 container. add_effect (new ShadowEffect (" window" , scale));
8287
8388 move_action = new DragDropAction (DragDropActionType . SOURCE , " pip" );
@@ -352,6 +357,9 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
352357 clone_container_height = (int ) (clone_container. height * clone_container. scale_y);
353358 }
354359
360+ rounded_container. width = clone_container_width;
361+ rounded_container. height = clone_container_height;
362+
355363 container. width = clone_container_width;
356364 container. height = clone_container_height;
357365
0 commit comments