@@ -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;
@@ -67,10 +68,14 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
6768 };
6869 clone_container. add_child (clone);
6970
71+ rounded_container = new Clutter .Actor ();
72+ rounded_container. add_child (clone_container);
73+ rounded_container. add_effect (new RoundedCornersEffect (6 , scale));
74+
7075 container = new Clutter .Actor () {
7176 reactive = true
7277 };
73- container. add_child (clone_container );
78+ container. add_child (rounded_container );
7479 container. add_effect (new ShadowEffect (" window" , scale));
7580
7681 move_action = new DragDropAction (DragDropActionType . SOURCE , " pip" );
@@ -345,6 +350,9 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
345350 clone_container_height = (int ) (clone_container. height * clone_container. scale_y);
346351 }
347352
353+ rounded_container. width = clone_container_width;
354+ rounded_container. height = clone_container_height;
355+
348356 container. width = clone_container_width;
349357 container. height = clone_container_height;
350358
0 commit comments