messageTray: Only attempt to grab the summary box pointer after showing it
For mysterious reasons I'm not sure of myself, navigate_focus will only focus mapped actors. So, make sure the widget is showing before navigating to it. https://bugzilla.gnome.org/show_bug.cgi?id=709853
This commit is contained in:
parent
9d3a109946
commit
c89af0cea4
@ -2809,13 +2809,13 @@ const MessageTray = new Lang.Class({
|
|||||||
Lang.bind(this, this._onSourceDoneDisplayingContent));
|
Lang.bind(this, this._onSourceDoneDisplayingContent));
|
||||||
|
|
||||||
this._summaryBoxPointer.bin.child = child;
|
this._summaryBoxPointer.bin.child = child;
|
||||||
this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child,
|
|
||||||
onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) });
|
|
||||||
|
|
||||||
this._summaryBoxPointer.actor.opacity = 0;
|
this._summaryBoxPointer.actor.opacity = 0;
|
||||||
this._summaryBoxPointer.actor.show();
|
this._summaryBoxPointer.actor.show();
|
||||||
this._adjustSummaryBoxPointerPosition();
|
this._adjustSummaryBoxPointerPosition();
|
||||||
|
|
||||||
|
this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child,
|
||||||
|
onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) });
|
||||||
|
|
||||||
this._summaryBoxPointerState = State.SHOWING;
|
this._summaryBoxPointerState = State.SHOWING;
|
||||||
this._summaryBoxPointer.show(BoxPointer.PopupAnimation.FULL, Lang.bind(this, function() {
|
this._summaryBoxPointer.show(BoxPointer.PopupAnimation.FULL, Lang.bind(this, function() {
|
||||||
this._summaryBoxPointerState = State.SHOWN;
|
this._summaryBoxPointerState = State.SHOWN;
|
||||||
|
Loading…
Reference in New Issue
Block a user