From 2913a9c80d5675da92ee3dfac1b7238b30aa1fac Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 22 Mar 2009 08:53:31 +0000
Subject: [PATCH] win.get_property('has-toplevel-focus') doesn't work under
 windows when we click on systray: focus is on systray icon. Fixes #4888

---
 src/systray.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/systray.py b/src/systray.py
index 04ac1cb0a4..619ef2b7c1 100644
--- a/src/systray.py
+++ b/src/systray.py
@@ -327,7 +327,7 @@ class Systray:
 		if len(gajim.events.get_systray_events()) == 0:
 			# No pending events, so toggle visible/hidden for roster window
 			if win.get_property('visible') and (win.get_property(
-			'has-toplevel-focus')):
+			'has-toplevel-focus') or os.name == 'nt'):
 				# visible in ANY virtual desktop?
 
 				# we could be in another VD right now. eg vd2
-- 
GitLab