[gnome-shell] Fix Chrome group not to interfere with drag-and-drop
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Fix Chrome group not to interfere with drag-and-drop
- Date: Sat, 23 May 2009 10:49:08 -0400 (EDT)
commit 0c7b983b107d9e32c3ab6f77660117f64219afec
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sat May 23 10:47:13 2009 -0400
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/js/ui/chrome.js b/js/ui/chrome.js
index a49842b..7a50c29 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]