Skip to content
Snippets Groups Projects
Commit be9aa8ba authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

save and restore roster position when we click on systray icon. Fixes #5196

parent dde42ddc
No related branches found
No related tags found
No related merge requests found
......@@ -377,9 +377,15 @@ class StatusIcon:
# we could be in another VD right now. eg vd2
# and we want to show it in vd2
if not gtkgui_helpers.possibly_move_window_in_current_desktop(win):
x, y = win.get_position()
gajim.config.set('roster_x-position', x)
gajim.config.set('roster_y-position', y)
win.hide() # else we hide it from VD that was visible in
else:
win.show_all()
if not win.get_property('visible'):
win.show_all()
win.move(gajim.config.get('roster_x-position'),
gajim.config.get('roster_y-position'))
if not gajim.config.get('roster_window_skip_taskbar'):
win.set_property('skip-taskbar-hint', False)
win.present_with_time(gtk.get_current_event_time())
......
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