[gnome-shell] overview: Fix DESKTOP clone position



commit b97f3a9ecf52183e86506af622a08eaa7e3846bb
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jan 24 23:05:46 2014 +0100

    overview: Fix DESKTOP clone position
    
    The DESKTOP window might not be located at (0,0), in particular
    on multi-monitor setups. While we already consider this by setting
    the clone's position, we then stuff the clone into a container which
    ignores it - meh ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723306

 js/ui/overview.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index f4ea362..061175d 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -131,7 +131,7 @@ const Overview = new Lang.Class({
         Main.layoutManager.overviewGroup.add_child(this._backgroundGroup);
         this._bgManagers = [];
 
-        this._desktopFade = new St.Bin();
+        this._desktopFade = new St.Widget();
         Main.layoutManager.overviewGroup.add_child(this._desktopFade);
 
         this._activationTime = 0;
@@ -493,8 +493,8 @@ const Overview = new Lang.Class({
     },
 
     fadeOutDesktop: function() {
-        if (!this._desktopFade.child)
-            this._desktopFade.child = this._getDesktopClone();
+        if (!this._desktopFade.get_n_children())
+            this._desktopFade.add_child(this._getDesktopClone());
 
         this._desktopFade.opacity = 255;
         this._desktopFade.show();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]