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.
This commit is contained in:
Owen W. Taylor 2009-05-23 10:47:13 -04:00
parent 7af940f7ea
commit 0c7b983b10

View File

@ -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);