]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
color_black was unused
[chaz/openbox] / openbox / client.c
index cc438b0f26f6ee81ae6f5da8530dba3570032d74..8216c44727915f3b5c87906a45818e4a040f967f 100644 (file)
@@ -533,12 +533,14 @@ static void client_restore_session_state(ObClient *self)
 
     self->session = it->data;
 
-    RECT_SET(self->area, self->session->x, self->session->y,
-             self->session->w, self->session->h);
+    RECT_SET_POINT(self->area, self->session->x, self->session->y);
     self->positioned = TRUE;
-    if (self->session->w > 0 && self->session->h > 0)
-        XResizeWindow(ob_display, self->window,
-                      self->session->w, self->session->h);
+    if (self->session->w > 0)
+        self->area.width = self->session->w;
+    if (self->session->h > 0)
+        self->area.height = self->session->h;
+    XResizeWindow(ob_display, self->window,
+                  self->area.width, self->area.height);
 
     self->desktop = (self->session->desktop == DESKTOP_ALL ?
                      self->session->desktop :
This page took 0.022545 seconds and 4 git commands to generate.