summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-05-19 16:11:59 -0400
committerDana Jansens <danakj@orodu.net>2010-05-19 21:38:46 -0400
commitc129c236919694e8daef2250f0485a933478b1dc (patch)
tree414cf20f79798b833a70fab50997277f22de2239 /openbox
parent53430914f0ac7e4e06a484d1fa3b0cf6a79df60b (diff)
set the frame's initial size to something invalid so the extents hint will be
set for sure the first time.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 571ddc04..4f262554 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -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;