summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-03 07:33:27 +0000
committerDana Jansens <danakj@orodu.net>2003-10-03 07:33:27 +0000
commitc4fcfc07e1921567b8bd4f098668e92e5cd597c9 (patch)
tree13c2e585ecb880be446ca368b5b7355b57a9af65 /openbox
parent450a291b570ae9dbf791f30cec50be58a3782272 (diff)
dont resize the window when restoring session state if the sizes are invalid
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c5
1 files 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 :