@@ -167,6 +167,8 @@ public class Gala.WorkspaceClone : ActorTarget {
167167 }
168168 });
169169
170+ clip_to_allocation = true ;
171+
170172 add_child (background);
171173 add_child (window_container);
172174
@@ -200,18 +202,31 @@ public class Gala.WorkspaceClone : ActorTarget {
200202
201203 var scale = (float )(monitor. height - Utils . scale_to_int (TOP_OFFSET + BOTTOM_OFFSET , monitor_scale)) / monitor. height;
202204 var pivot_y = Utils . scale_to_int (TOP_OFFSET , monitor_scale) / (monitor. height - monitor. height * scale);
203- background. set_pivot_point (0.5f , pivot_y);
205+ background. set_pivot_point (0f , pivot_y);
204206
205207 var initial_width = monitor. width;
206- var target_width = monitor. width * scale + WorkspaceRow . WORKSPACE_GAP * 2 ;
208+ var target_width = monitor. width * scale;
209+
210+ var target_height = monitor. height * scale;
207211
208- add_target (new PropertyTarget (MULTITASKING_VIEW , this , " width" , typeof (float ), (float ) initial_width, (float ) target_width));
212+ add_target (new PropertyTarget (MULTITASKING_VIEW , window_container, " width" , typeof (float ), (float ) target_height, (float ) target_width));
213+ add_target (new PropertyTarget (MULTITASKING_VIEW , this , " width" , typeof (float ), (float ) initial_width + WorkspaceRow . WORKSPACE_GAP , (float ) target_width + WorkspaceRow . WORKSPACE_GAP ));
209214 add_target (new PropertyTarget (MULTITASKING_VIEW , background, " scale-x" , typeof (double ), 1d , (double ) scale));
210215 add_target (new PropertyTarget (MULTITASKING_VIEW , background, " scale-y" , typeof (double ), 1d , (double ) scale));
211216
212- window_container. padding_top = Utils . scale_to_int (TOP_OFFSET , monitor_scale);
213- window_container. padding_left = window_container. padding_right = (int ) (monitor. width - monitor. width * scale) / 2 ;
214- window_container. padding_bottom = Utils . scale_to_int (BOTTOM_OFFSET , monitor_scale);
217+ background. x = WorkspaceRow . WORKSPACE_GAP / 2 ;
218+ window_container. x = WorkspaceRow . WORKSPACE_GAP / 2 ;
219+
220+ window_container. area = {
221+ 12 ,
222+ Utils . scale_to_int (TOP_OFFSET , monitor_scale),
223+ (int ) (target_width - 24 ),
224+ (int ) target_height
225+ };
226+ }
227+
228+ public override void update_progress (GestureAction action, double progress) {
229+ // background.set_pivot_point (0.5f, 0f);
215230 }
216231
217232 private void activate (bool close_view) {
0 commit comments