Skip to content
Snippets Groups Projects
Commit 2913a9c8 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

win.get_property('has-toplevel-focus') doesn't work under windows when we...

win.get_property('has-toplevel-focus') doesn't work under windows when we click on systray: focus is on systray icon. Fixes #4888
parent 1b34a125
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment