set the frame's initial size to something invalid so the extents hint will be
[dana/openbox.git] / openbox / frame.c
index 571ddc0..4f26255 100644 (file)
@@ -188,6 +188,10 @@ ObFrame *frame_new(ObClient *client)
     self->max_hover = self->close_hover = self->desk_hover =
         self->iconify_hover = self->shade_hover = FALSE;
 
+    /* make sure the size will be different the first time, so the extent hints
+       will be set */
+    STRUT_SET(self->size, -1, -1, -1, -1);
+
     set_theme_statics(self);
 
     return self;