]> Dogcows Code - chaz/openbox/commitdiff
dont resize the window when restoring session state if the sizes are invalid
authorDana Jansens <danakj@orodu.net>
Fri, 3 Oct 2003 07:33:27 +0000 (07:33 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 3 Oct 2003 07:33:27 +0000 (07:33 +0000)
openbox/client.c

index 643cf60b771591efc0a55293b353878c294a1497..9a748e7ffb9043aaacc3b003a6da138dd74d64ec 100644 (file)
@@ -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 :
This page took 0.032296 seconds and 4 git commands to generate.