Commit 6309d6a0 authored by Yann Leboulanger's avatar Yann Leboulanger

hide roster to systray only if it has focus. fixes #3321

parent b9896171
......@@ -285,7 +285,8 @@ class Systray:
def on_left_click(self):
win = gajim.interface.roster.window
# toggle visible/hidden for roster window
if win.get_property('visible'): # visible in ANY virtual desktop?
if win.get_property('visible') and win.get_property('has-toplevel-focus'):
# visible in ANY virtual desktop?
# we could be in another VD right now. eg vd2
# and we want to show it in vd2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment