[Pkg-mozext-commits] [firetray] 333/399: attempt to fix restore maximized window
David Prévot
taffit at alioth.debian.org
Tue Oct 29 18:24:09 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch dfsg-clean
in repository firetray.
commit 6c4d21d4b330c90c39a24636f29bf3e70d32b9e3
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Thu Dec 20 13:36:24 2012 +0100
attempt to fix restore maximized window
---
src/modules/linux/FiretrayWindow.jsm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/modules/linux/FiretrayWindow.jsm b/src/modules/linux/FiretrayWindow.jsm
index 69e41d6..98f40d6 100644
--- a/src/modules/linux/FiretrayWindow.jsm
+++ b/src/modules/linux/FiretrayWindow.jsm
@@ -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;
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git
More information about the Pkg-mozext-commits
mailing list