viewSelector: Set the active page immediately
This prevents some focus management issues. https://bugzilla.gnome.org/show_bug.cgi?id=689062
This commit is contained in:
parent
d86e57a8d9
commit
7d693cbd17
@ -211,18 +211,19 @@ const ViewSelector = new Lang.Class({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(this._activePage) {
|
if(this._activePage) {
|
||||||
|
let oldPage = this._activePage;
|
||||||
Tweener.addTween(this._activePage,
|
Tweener.addTween(this._activePage,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
time: 0.1,
|
time: 0.1,
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
onComplete: Lang.bind(this,
|
onComplete: Lang.bind(this,
|
||||||
function() {
|
function() {
|
||||||
this._activePage.hide();
|
oldPage.hide();
|
||||||
this._activePage = page;
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._activePage = page;
|
||||||
page.show();
|
page.show();
|
||||||
Tweener.addTween(page,
|
Tweener.addTween(page,
|
||||||
{ opacity: 255,
|
{ opacity: 255,
|
||||||
|
Loading…
Reference in New Issue
Block a user