win.get_property('has-toplevel-focus') doesn't work under windows when we click on systray: focus is on systray icon. Fixes #4888

This commit is contained in:
Yann Leboulanger 2009-03-22 08:53:31 +00:00
parent 1b34a125c0
commit 2913a9c80d
1 changed files with 1 additions and 1 deletions

View File

@ -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