[gnome-shell] xdndHandler: Add the dummy actor to the uiGroup
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] xdndHandler: Add the dummy actor to the uiGroup
- Date: Mon, 18 Feb 2013 19:49:06 +0000 (UTC)
commit ba5860cdd6c877d576201395808ad911a7bb899e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Feb 15 01:58:21 2013 -0500
xdndHandler: Add the dummy actor to the uiGroup
While this isn't too urgent, since this won't break if we don't have
a drag actor, I was wondering what the other child in my stage was.
js/ui/xdndHandler.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/xdndHandler.js b/js/ui/xdndHandler.js
index 8a24bc2..ee52335 100644
--- a/js/ui/xdndHandler.js
+++ b/js/ui/xdndHandler.js
@@ -2,6 +2,7 @@
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
+const Main = imports.ui.main;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
const DND = imports.ui.dnd;
@@ -16,7 +17,7 @@ const XdndHandler = new Lang.Class({
// Used as a drag actor in case we don't have a cursor window clone
this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
- global.stage.add_actor(this._dummy);
+ Main.uiGroup.add_actor(this._dummy);
Shell.util_set_hidden_from_pick(this._dummy, true);
this._dummy.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]