correct position of the window while reading the new event by clicking on the tray icon

(restore window coordinates when it is the maximization of the system tray)
This commit is contained in:
Denis Fomin 2011-01-27 19:10:15 +03:00
parent 04418850f9
commit 43f4dd1433
1 changed files with 5 additions and 0 deletions

View File

@ -414,6 +414,11 @@ class StatusIcon:
account, jid, event = gajim.events.get_first_systray_event()
if not event:
return
win = gajim.interface.roster.window
if not win.get_property('visible'):
gtkgui_helpers.move_window(win,
gajim.config.get('roster_x-position'),
gajim.config.get('roster_y-position'))
gajim.interface.handle_event(account, jid, event.type_)
def on_middle_click(self):