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
This commit is contained in:
Owen W. Taylor 2009-08-12 22:07:10 -04:00
parent fb0ca1ba9d
commit 4aae57c274

View File

@ -274,6 +274,12 @@ Workspace.prototype = {
this.actor = new Clutter.Group(); this.actor = new Clutter.Group();
this.actor._delegate = this; 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; this.scale = 1.0;
let windows = global.get_windows().filter(this._isMyWindow, this); let windows = global.get_windows().filter(this._isMyWindow, this);