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:
parent
1b34a125c0
commit
2913a9c80d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue