From 731de491d27ae10c73aa026e5a24768e380077cd Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 28 Aug 2005 10:29:53 +0000 Subject: [PATCH] do not show roster out of screen --- src/roster_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index d740a6061..31c2ea651 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2040,8 +2040,13 @@ _('If "%s" accepts this request you will know his status.') %jid) # no need of this variable self.have_new_message_accel = False # Is the "Ctrl+N" shown ? if gajim.config.get('saveposition'): - self.window.move(gajim.config.get('roster_x-position'), - gajim.config.get('roster_y-position')) + x = gajim.config.get('roster_x-position') + y = gajim.config.get('roster_y-position') + if x < 0: + x = 0 + if y < 0: + y = 0 + self.window.move(x, y) self.window.resize(gajim.config.get('roster_width'), gajim.config.get('roster_height'))