@@ -10,7 +10,6 @@ public class Gala.Plugins.PIP.PopupWindow : RootTarget, ActorTarget {
1010 private const uint FADE_OUT_TIMEOUT = 200 ;
1111 private const float MINIMUM_SCALE = 0.1f ;
1212 private const float MAXIMUM_SCALE = 1.0f ;
13- private const int SCREEN_MARGIN = 0 ;
1413 private const float OFF_SCREEN_PERCENT = 0.5f ;
1514 private const int OFF_SCREEN_VISIBLE_PIXELS = 80 ;
1615
@@ -95,11 +94,11 @@ public class Gala.Plugins.PIP.PopupWindow : RootTarget, ActorTarget {
9594
9695 float x_position, y_position;
9796 if (Clutter . get_default_text_direction () == Clutter . TextDirection . RTL ) {
98- x_position = SCREEN_MARGIN + workarea_rect. x;
97+ x_position = workarea_rect. x;
9998 } else {
100- x_position = workarea_rect. x + workarea_rect. width - SCREEN_MARGIN - width;
99+ x_position = workarea_rect. x + workarea_rect. width - width;
101100 }
102- y_position = workarea_rect. y + workarea_rect. height - SCREEN_MARGIN - height;
101+ y_position = workarea_rect. y + workarea_rect. height - height;
103102
104103 set_position (x_position, y_position);
105104
@@ -451,10 +450,10 @@ public class Gala.Plugins.PIP.PopupWindow : RootTarget, ActorTarget {
451450
452451 var workarea_rect = wm. get_display (). get_workspace_manager (). get_active_workspace (). get_work_area_all_monitors ();
453452
454- var screen_limit_start_x = workarea_rect. x + SCREEN_MARGIN ;
455- var screen_limit_end_x = workarea_rect. x + workarea_rect. width - SCREEN_MARGIN - width;
456- var screen_limit_start_y = workarea_rect. y + SCREEN_MARGIN ;
457- var screen_limit_end_y = workarea_rect. y + workarea_rect. height - SCREEN_MARGIN - height;
453+ var screen_limit_start_x = workarea_rect. x;
454+ var screen_limit_end_x = workarea_rect. x + workarea_rect. width - width;
455+ var screen_limit_start_y = workarea_rect. y;
456+ var screen_limit_end_y = workarea_rect. y + workarea_rect. height - height;
458457
459458 var duration = Utils . get_animation_duration (300 );
460459
0 commit comments