mirror of
https://github.com/moparisthebest/FireTray
synced 2024-12-22 05:48:49 -05:00
attempt to fix restore maximized window
This commit is contained in:
parent
c66d226f78
commit
6c4d21d4b3
@ -294,6 +294,10 @@ firetray.Window = {
|
||||
let winStates = firetray.Handler.windows[xid].savedStates;
|
||||
log.debug("restored WindowStates: " + winStates);
|
||||
|
||||
/* helps prevent getting iconify event following show() */
|
||||
if (firetray.Utils.prefService.getBoolPref('hides_on_minimize'))
|
||||
firetray.Handler.windows[xid].chromeWin.restore(); // nsIDOMChromeWindow.idl
|
||||
|
||||
if (winStates & FIRETRAY_XWINDOW_MAXIMIZED) {
|
||||
firetray.Handler.windows[xid].chromeWin.maximize();
|
||||
log.debug("restored maximized");
|
||||
@ -304,10 +308,6 @@ firetray.Window = {
|
||||
log.debug("restored minimized");
|
||||
}
|
||||
|
||||
/* helps prevent getting iconify event following show() */
|
||||
if (firetray.Utils.prefService.getBoolPref('hides_on_minimize'))
|
||||
firetray.Handler.windows[xid].chromeWin.restore();
|
||||
|
||||
delete firetray.Handler.windows[xid].savedStates;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user