From c4fcfc07e1921567b8bd4f098668e92e5cd597c9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 Oct 2003 07:33:27 +0000 Subject: [PATCH] dont resize the window when restoring session state if the sizes are invalid --- openbox/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 : -- 2.45.2