From 0c7b983b107d9e32c3ab6f77660117f64219afec Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 23 May 2009 10:47:13 -0400 Subject: [PATCH] Fix Chrome group not to interfere with drag-and-drop Drag and drop was not working since the (non-reactive, invisible) chrome group was on top of most of the screen. Explicitly set a 0x0 size on that group to resolve the problem. --- js/ui/chrome.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/chrome.js b/js/ui/chrome.js index a49842b9a..7a50c29f4 100644 --- a/js/ui/chrome.js +++ b/js/ui/chrome.js @@ -20,7 +20,8 @@ Chrome.prototype = { _init: function() { let global = Shell.Global.get(); - this.actor = new Clutter.Group(); + // The group itself has zero size so it doesn't interfere with DND + this.actor = new Clutter.Group({ width: 0, height: 0 }); global.stage.add_actor(this.actor); this.nonOverlayActor = new Clutter.Group(); this.actor.add_actor(this.nonOverlayActor);