projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450a291
)
dont resize the window when restoring session state if the sizes are invalid
author
Dana Jansens
<danakj@orodu.net>
Fri, 3 Oct 2003 07:33:27 +0000
(07:33 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 3 Oct 2003 07:33:27 +0000
(07:33 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index 643cf60b771591efc0a55293b353878c294a1497..9a748e7ffb9043aaacc3b003a6da138dd74d64ec 100644
(file)
--- 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 :