workspacesView: Make setGeometry take a rectangle

This cleanup will be more important in the future,
but for now, we can simply pass a monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=694469
This commit is contained in:
Jasper St. Pierre
2013-02-25 17:05:51 -05:00
parent 2506673514
commit e3957f3bac
2 changed files with 22 additions and 26 deletions

View File

@ -956,15 +956,15 @@ const Workspace = new Lang.Class({
this._positionWindowsId = 0;
},
setGeometry: function(x, y, width, height) {
this._x = x;
this._y = y;
this._width = width;
this._height = height;
setGeometry: function(geom) {
this._x = geom.x;
this._y = geom.y;
this._width = geom.width;
this._height = geom.height;
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
this._dropRect.set_position(x, y);
this._dropRect.set_size(width, height);
this._dropRect.set_position(geom.x, geom.y);
this._dropRect.set_size(geom.width, geom.height);
return false;
}));