From 6309d6a02ac89897d0d49a321cf6835236317a5a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 24 Aug 2007 20:47:29 +0000 Subject: [PATCH] hide roster to systray only if it has focus. fixes #3321 --- src/systray.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systray.py b/src/systray.py index 84ae49877..f96361a33 100644 --- a/src/systray.py +++ b/src/systray.py @@ -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