dont resize the window when restoring session state if the sizes are invalid
This commit is contained in:
parent
450a291b57
commit
c4fcfc07e1
1 changed files with 3 additions and 2 deletions
|
@ -526,8 +526,9 @@ static void client_restore_session_state(ObClient *self)
|
||||||
RECT_SET(self->area, self->session->x, self->session->y,
|
RECT_SET(self->area, self->session->x, self->session->y,
|
||||||
self->session->w, self->session->h);
|
self->session->w, self->session->h);
|
||||||
self->positioned = TRUE;
|
self->positioned = TRUE;
|
||||||
XResizeWindow(ob_display, self->window,
|
if (self->session->w > 0 && self->session->h > 0)
|
||||||
self->session->w, self->session->h);
|
XResizeWindow(ob_display, self->window,
|
||||||
|
self->session->w, self->session->h);
|
||||||
|
|
||||||
self->desktop = (self->session->desktop == DESKTOP_ALL ?
|
self->desktop = (self->session->desktop == DESKTOP_ALL ?
|
||||||
self->session->desktop :
|
self->session->desktop :
|
||||||
|
|
Loading…
Reference in a new issue