do not show roster out of screen

This commit is contained in:
Nikos Kouremenos 2005-08-28 10:29:53 +00:00
parent c0c32680cd
commit 731de491d2
1 changed files with 7 additions and 2 deletions

View File

@ -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'))