[gnome-shell] Explicitly set the size of the workspace actors



commit 4aae57c2744d18bac7502ba180b5538b824215d4
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Aug 12 22:07:10 2009 -0400

    Explicitly set the size of the workspace actors
    
    Instead of counting on the implicit sizing of ClutterGroup, which isn't
    going to work well because of current limitations of ClutterClone, set
    the size of workspace explicitly based on the screen size.
    
    This should fix various problems with drag-and-drop being unreliable;
    if a workspace was sized to big it could overlap other workspaces or
    elements of the overview.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=591643

 js/ui/workspaces.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js
index 7802505..39e2cd4 100644
--- a/js/ui/workspaces.js
+++ b/js/ui/workspaces.js
@@ -274,6 +274,12 @@ Workspace.prototype = {
 
         this.actor = new Clutter.Group();
         this.actor._delegate = this;
+        // Auto-sizing is unreliable in the presence of ClutterClone, so rather than
+        // implicitly counting on the workspace actor to be sized to the size of the
+        // included desktop actor clone, set the size explicitly to the screen size.
+        // See http://bugzilla.openedhand.com/show_bug.cgi?id=1755
+        this.actor.width = global.screen_width;
+        this.actor.height = global.screen_height;
         this.scale = 1.0;
 
         let windows = global.get_windows().filter(this._isMyWindow, this);



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