mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue