Skip to content
Snippets Groups Projects
Commit 2bef238b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

StatusIcon: Only hide application when its focused

parent 508a0604
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment