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:
parent
d6cace32f5
commit
43876a9357
@ -582,7 +582,10 @@ const BoxPointer = new Lang.Class({
|
|||||||
if (this._arrowSide != arrowSide) {
|
if (this._arrowSide != arrowSide) {
|
||||||
this._arrowSide = arrowSide;
|
this._arrowSide = arrowSide;
|
||||||
this._reposition();
|
this._reposition();
|
||||||
this._container.queue_relayout();
|
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
|
||||||
|
this._container.queue_relayout();
|
||||||
|
return false;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user