[Pkg-mozext-commits] [firetray] 70/84: Cleaning.
David Prévot
taffit at moszumanska.debian.org
Sun Jul 20 01:42:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firetray.
commit 7da4cc30c011e7846e2e9db3cec44655b9bf1b58
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Wed Jun 4 22:03:58 2014 +0200
Cleaning.
---
src/modules/winnt/FiretrayWindow.jsm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/modules/winnt/FiretrayWindow.jsm b/src/modules/winnt/FiretrayWindow.jsm
index 4ac20d4..f9fef06 100644
--- a/src/modules/winnt/FiretrayWindow.jsm
+++ b/src/modules/winnt/FiretrayWindow.jsm
@@ -171,10 +171,15 @@ firetray.Handler.registerWindow = function(win) {
let baseWin = firetray.Handler.getWindowInterface(win, "nsIBaseWindow");
let nativeHandle = baseWin.nativeHandle;
- let hwnd = nativeHandle ?
- firetray.Win32.hexStrToHwnd(nativeHandle) :
- user32.FindWindowW("MozillaWindowClass", win.document.title);
- let wid = firetray.Win32.hwndToHexStr(hwnd);
+ let hwnd, wid;
+ if (nativeHandle) {
+ hwnd = firetray.Win32.hexStrToHwnd(nativeHandle);
+ wid = nativeHandle;
+ }
+ else {
+ hwnd = user32.FindWindowW("MozillaWindowClass", win.document.title);
+ wid = firetray.Win32.hwndToHexStr(hwnd);
+ }
log.debug("=== hwnd="+hwnd+" wid="+wid+" win.document.title: "+win.document.title);
if (this.windows.hasOwnProperty(wid)) {
--
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