[or-cvs] r14026: Check window state before messing with resizing, for maximiz (torbutton/trunk/src/chrome/content)
mikeperry at seul.org
mikeperry at seul.org
Fri Mar 14 08:19:06 UTC 2008
Author: mikeperry
Date: 2008-03-14 04:19:06 -0400 (Fri, 14 Mar 2008)
New Revision: 14026
Modified:
torbutton/trunk/src/chrome/content/torbutton.js
Log:
Check window state before messing with resizing, for
maximized windows.
Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js 2008-03-14 08:04:31 UTC (rev 14025)
+++ torbutton/trunk/src/chrome/content/torbutton.js 2008-03-14 08:19:06 UTC (rev 14026)
@@ -1295,7 +1295,9 @@
function torbutton_check_round(browser)
{
- if(m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")
+ if(window.windowState
+ == Components.interfaces.nsIDOMChromeWindow.STATE_NORMAL
+ && m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")
&& m_tb_prefs.getBoolPref("extensions.torbutton.resize_on_toggle")) {
if(Math.abs(browser.contentWindow.innerHeight -
More information about the tor-commits
mailing list