windows steal focus when clicking on systray. fixes #4168
This commit is contained in:
parent
32eaa3219f
commit
b558388db4
|
@ -293,7 +293,8 @@ class Systray:
|
||||||
return
|
return
|
||||||
win = gajim.interface.roster.window
|
win = gajim.interface.roster.window
|
||||||
# toggle visible/hidden for roster window
|
# toggle visible/hidden for roster window
|
||||||
if win.get_property('visible') and win.get_property('has-toplevel-focus'):
|
if win.get_property('visible') and (win.get_property('has-toplevel-focus') or \
|
||||||
|
os.name == 'nt'):
|
||||||
# visible in ANY virtual desktop?
|
# visible in ANY virtual desktop?
|
||||||
|
|
||||||
# we could be in another VD right now. eg vd2
|
# we could be in another VD right now. eg vd2
|
||||||
|
|
Loading…
Reference in New Issue