hide roster to systray only if it has focus. fixes #3321
This commit is contained in:
parent
b989617158
commit
6309d6a02a
|
@ -285,7 +285,8 @@ class Systray:
|
||||||
def on_left_click(self):
|
def on_left_click(self):
|
||||||
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'): # 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
|
# we could be in another VD right now. eg vd2
|
||||||
# and we want to show it in vd2
|
# and we want to show it in vd2
|
||||||
|
|
Loading…
Reference in New Issue