[Pkg-mozext-commits] [firetray] 387/399: broader detection of the iconify event
David Prévot
taffit at alioth.debian.org
Tue Oct 29 18:24:20 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 4bbb66cde82035b298877fbbd7ce8e65b796400b
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Thu Oct 10 22:01:29 2013 +0200
broader detection of the iconify event
Revert using getXWindowStates() instead of gdk_window_get_state(). Xfce only
sets_NET_WM_STATE_HIDDEN after iconify.
---
src/modules/linux/FiretrayWindow.jsm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/modules/linux/FiretrayWindow.jsm b/src/modules/linux/FiretrayWindow.jsm
index 2bb83f9..72ff962 100644
--- a/src/modules/linux/FiretrayWindow.jsm
+++ b/src/modules/linux/FiretrayWindow.jsm
@@ -566,10 +566,12 @@ firetray.Window = {
case x11.UnmapNotify: // for catching 'iconify'
log.debug("UnmapNotify");
- let gdkWinStateOnUnmap = gdk.gdk_window_get_state(firetray.Handler.gdkWindows.get(xid));
- log.debug("gdkWinStateOnUnmap="+gdkWinStateOnUnmap+" for xid="+xid);
+
+ let winStates = firetray.Window.getXWindowStates(xid);
+ let isHidden = winStates & FIRETRAY_XWINDOW_HIDDEN;
+ log.debug("winStates="+winStates+", isHidden="+isHidden);
// NOTE: Gecko 8.0 provides the 'sizemodechange' event
- if (gdkWinStateOnUnmap & gdk.GDK_WINDOW_STATE_ICONIFIED) {
+ if (isHidden) {
log.debug("GOT ICONIFIED");
let hides_on_minimize = firetray.Utils.prefService.getBoolPref('hides_on_minimize');
let hides_single_window = firetray.Utils.prefService.getBoolPref('hides_single_window');
--
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