@@ -183,6 +183,8 @@ public class Gala.WorkspaceClone : ActorTarget {
183183 }
184184 });
185185
186+ clip_to_allocation = true ;
187+
186188 add_child (background);
187189 add_child (window_container);
188190
@@ -234,18 +236,27 @@ public class Gala.WorkspaceClone : ActorTarget {
234236
235237 var scale = (float )(monitor. height - Utils . scale_to_int (TOP_OFFSET + BOTTOM_OFFSET , monitor_scale)) / monitor. height;
236238 var pivot_y = Utils . scale_to_int (TOP_OFFSET , monitor_scale) / (monitor. height - monitor. height * scale);
237- background. set_pivot_point (0.5f , pivot_y);
239+ background. set_pivot_point (0f , pivot_y);
238240
239241 var initial_width = monitor. width;
240- var target_width = monitor. width * scale + WorkspaceRow . WORKSPACE_GAP * 2 ;
242+ var target_width = monitor. width * scale;
243+
244+ var target_height = monitor. height * scale;
241245
242- add_target (new PropertyTarget (MULTITASKING_VIEW , this , " width" , typeof (float ), (float ) initial_width, (float ) target_width));
246+ add_target (new PropertyTarget (MULTITASKING_VIEW , window_container, " width" , typeof (float ), (float ) initial_width, (float ) target_width));
247+ add_target (new PropertyTarget (MULTITASKING_VIEW , this , " width" , typeof (float ), (float ) initial_width + WorkspaceRow . WORKSPACE_GAP , (float ) target_width + WorkspaceRow . WORKSPACE_GAP ));
243248 add_target (new PropertyTarget (MULTITASKING_VIEW , background, " scale-x" , typeof (double ), 1d , (double ) scale));
244249 add_target (new PropertyTarget (MULTITASKING_VIEW , background, " scale-y" , typeof (double ), 1d , (double ) scale));
245250
246- window_container. padding_top = Utils . scale_to_int (TOP_OFFSET , monitor_scale);
247- window_container. padding_left = window_container. padding_right = (int ) (monitor. width - monitor. width * scale) / 2 ;
248- window_container. padding_bottom = Utils . scale_to_int (BOTTOM_OFFSET , monitor_scale);
251+ background. x = WorkspaceRow . WORKSPACE_GAP / 2 ;
252+ window_container. x = WorkspaceRow . WORKSPACE_GAP / 2 ;
253+
254+ window_container. area = {
255+ 12 ,
256+ Utils . scale_to_int (TOP_OFFSET , monitor_scale),
257+ (int ) (target_width - 24 ),
258+ (int ) target_height
259+ };
249260 }
250261
251262#if OLD_ICON_GROUPS
0 commit comments