From: Dana Jansens Date: Fri, 3 Oct 2003 07:33:27 +0000 (+0000) Subject: dont resize the window when restoring session state if the sizes are invalid X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=c4fcfc07e1921567b8bd4f098668e92e5cd597c9;p=chaz%2Fopenbox dont resize the window when restoring session state if the sizes are invalid --- diff --git a/openbox/client.c b/openbox/client.c index 643cf60b..9a748e7f 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -526,8 +526,9 @@ 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; - XResizeWindow(ob_display, self->window, - self->session->w, self->session->h); + if (self->session->w > 0 && self->session->h > 0) + XResizeWindow(ob_display, self->window, + self->session->w, self->session->h); self->desktop = (self->session->desktop == DESKTOP_ALL ? self->session->desktop :