Commit 2bef238b authored by Philipp Hörist's avatar Philipp Hörist

StatusIcon: Only hide application when its focused

parent 508a0604
Pipeline #7413 canceled with stages
in 1 minute and 40 seconds
......@@ -314,10 +314,9 @@ def _on_left_click(self):
win = app.interface.roster.window
if not app.events.get_systray_events():
# No pending events, so toggle visible/hidden for roster window
if win.get_property('visible'):
if win.get_property('has-toplevel-focus') or os.name == 'nt':
save_roster_position(win)
win.hide() # else we hide it from VD that was visible in
if win.get_property('has-toplevel-focus'):
save_roster_position(win)
win.hide()
else:
win.show_all()
restore_roster_position(win)
......
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