From 43f4dd14334996e01605a0b081cb707b4a0c9733 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 27 Jan 2011 19:10:15 +0300 Subject: [PATCH] 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) --- src/statusicon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/statusicon.py b/src/statusicon.py index 10d974ff0..68701fa59 100644 --- a/src/statusicon.py +++ b/src/statusicon.py @@ -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):