dont resize the window when restoring session state if the sizes are invalid

This commit is contained in:
Dana Jansens 2003-10-03 07:33:27 +00:00
parent 450a291b57
commit c4fcfc07e1

View file

@ -526,6 +526,7 @@ static void client_restore_session_state(ObClient *self)
RECT_SET(self->area, self->session->x, self->session->y,
self->session->w, self->session->h);
self->positioned = TRUE;
if (self->session->w > 0 && self->session->h > 0)
XResizeWindow(ob_display, self->window,
self->session->w, self->session->h);