From 10dd89c7bdcf6e626c55753ac34e916a2bffbce2 Mon Sep 17 00:00:00 2001 From: Tom Beckmann Date: Sat, 14 Jul 2012 15:30:30 +0200 Subject: [PATCH] Clip workspaces to their allocation when switching --- src/Main.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main.vala b/src/Main.vala index 58bf736b..9bf2fbda 100644 --- a/src/Main.vala +++ b/src/Main.vala @@ -540,6 +540,10 @@ namespace Gala in_group.set_position (-x2, -y2); group.set_child_above_sibling (in_group, null); + in_group.clip_to_allocation = out_group.clip_to_allocation = true; + in_group.width = out_group.width = w; + in_group.height = out_group.height = h; + out_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, AnimationSettings.get_default ().workspace_switch_duration, x:x2, y:y2); in_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, AnimationSettings.get_default ().workspace_switch_duration,