]> Dogcows Code - chaz/openbox/commitdiff
set the frame's initial size to something invalid so the extents hint will be
authorDana Jansens <danakj@orodu.net>
Wed, 19 May 2010 20:11:59 +0000 (16:11 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 20 May 2010 01:38:46 +0000 (21:38 -0400)
set for sure the first time.

openbox/frame.c

index 571ddc041234d21658348cc3a0ae43f7b8b35cca..4f26255437f6a6124e220796312f025033d203bb 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;
This page took 0.025187 seconds and 4 git commands to generate.