boxpointer: Defer re-allocation after a flip

As we may be flipping the box pointer in response to re-allocation,
like the addition of a new actor to the boxpointer, we can't queue
a re-layout while in a re-layout, so defer.

https://bugzilla.gnome.org/show_bug.cgi?id=690608
This commit is contained in:
Jasper St. Pierre 2012-12-21 09:20:04 -05:00
parent d6cace32f5
commit 43876a9357

View File

@ -582,7 +582,10 @@ const BoxPointer = new Lang.Class({
if (this._arrowSide != arrowSide) {
this._arrowSide = arrowSide;
this._reposition();
this._container.queue_relayout();
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
this._container.queue_relayout();
return false;
}));
}
},