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

This commit is contained in:
Yann Leboulanger 2007-08-24 20:47:29 +00:00
parent b989617158
commit 6309d6a02a
1 changed files with 2 additions and 1 deletions

View File

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