From ec61004622878924a1c613f674282cc0c9d9392d Mon Sep 17 00:00:00 2001
From: Giovanni Campagna <gcampagna@src.gnome.org>
Date: Sun, 17 Feb 2013 22:34:36 +0100
Subject: [PATCH] Overview: clip contents to the allocation

If they're not clipped, overview controls can leak to secondary monitors
while animating.
---
 js/ui/overview.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js/ui/overview.js b/js/ui/overview.js
index d57873443..6c5d59368 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -142,7 +142,8 @@ const Overview = new Lang.Class({
                                             vertical: true });
         this._overview._delegate = this;
 
-        this._group = new St.BoxLayout({ name: 'overview-group' });
+        this._group = new St.BoxLayout({ name: 'overview-group',
+                                         clip_to_allocation: true });
 
         this._capturedEventId = 0;
         this._buttonPressId = 0;