mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 463964 - "Session restore should restore minimized state" [r=dietrich]
This commit is contained in:
parent
02542172e9
commit
579036a8f5
@ -2122,11 +2122,20 @@ SessionStoreService.prototype = {
|
|||||||
if (!isNaN(aLeft) && !isNaN(aTop) && (aLeft != win_("screenX") || aTop != win_("screenY"))) {
|
if (!isNaN(aLeft) && !isNaN(aTop) && (aLeft != win_("screenX") || aTop != win_("screenY"))) {
|
||||||
aWindow.moveTo(aLeft, aTop);
|
aWindow.moveTo(aLeft, aTop);
|
||||||
}
|
}
|
||||||
if (aSizeMode == "maximized" && win_("sizemode") != "maximized") {
|
switch (aSizeMode)
|
||||||
aWindow.maximize();
|
{
|
||||||
}
|
case "maximized":
|
||||||
else if (aSizeMode && aSizeMode != "maximized" && win_("sizemode") != "normal") {
|
if (win_("sizemode") != "maximized")
|
||||||
aWindow.restore();
|
aWindow.maximize();
|
||||||
|
break
|
||||||
|
case "minimized":
|
||||||
|
if (win_("sizemode") != "minimized")
|
||||||
|
aWindow.minimize();
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
if (win_("sizemode") != "normal")
|
||||||
|
aWindow.restore();
|
||||||
|
break
|
||||||
}
|
}
|
||||||
var sidebar = aWindow.document.getElementById("sidebar-box");
|
var sidebar = aWindow.document.getElementById("sidebar-box");
|
||||||
if (sidebar.getAttribute("sidebarcommand") != aSidebar) {
|
if (sidebar.getAttribute("sidebarcommand") != aSidebar) {
|
||||||
|
Loading…
Reference in New Issue
Block a user