Skip to content
Snippets Groups Projects
Commit 731de491 authored by nkour's avatar nkour
Browse files

do not show roster out of screen

parent c0c32680
No related branches found
No related tags found
No related merge requests found
......@@ -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'))
......
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