mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703945 - blank screen after rotate on every site. r=mbrubeck
This commit is contained in:
parent
0b63120edf
commit
360e7f7a43
@ -2683,6 +2683,7 @@ var ActivityObserver = {
|
||||
_inBackground : false,
|
||||
_notActive : false,
|
||||
_isDisplayOff : false,
|
||||
_timeoutID: 0,
|
||||
observe: function ao_observe(aSubject, aTopic, aData) {
|
||||
if (aTopic == "application-background") {
|
||||
this._inBackground = true;
|
||||
@ -2698,11 +2699,13 @@ var ActivityObserver = {
|
||||
this._isDisplayOff = true;
|
||||
}
|
||||
let activeTabState = !this._inBackground && !this._notActive && !this._isDisplayOff;
|
||||
if (this._timeoutID)
|
||||
clearTimeout(this._timeoutID);
|
||||
if (Browser.selectedTab.active != activeTabState) {
|
||||
// On Maemo all backgrounded applications getting portrait orientation
|
||||
// so if browser had landscape mode then we need timeout in order
|
||||
// to finish last rotate/paint operation and have nice lookine browser in TS
|
||||
setTimeout(function() { Browser.selectedTab.active = activeTabState; }, activeTabState ? 0 : kSetInactiveStateTimeout);
|
||||
this._timeoutID = setTimeout(function() { Browser.selectedTab.active = activeTabState; }, activeTabState ? 0 : kSetInactiveStateTimeout);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user