summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-10 05:25:34 +0000
committerDana Jansens <danakj@orodu.net>2007-05-10 05:25:34 +0000
commit11dd7db8768be3cbd9553ff57b962da97d5994ad (patch)
treea4805362c4aea901a126d5c189f8c59b5258639d /openbox
parent083a7565c7d7c5cf28d0f91b6c28a893429a7e83 (diff)
make the frame before you use the frame..
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 719f46a1..d8a28a24 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -506,11 +506,10 @@ ObClient *client_fake_manage(Window window)
settings = client_get_settings_state(self);
client_setup_decor_and_functions(self);
- /* adjust the decorations so we know the sizes */
- frame_adjust_area(self->frame, FALSE, TRUE, TRUE);
- /* create the decoration frame for the client window */
+ /* create the decoration frame for the client window and adjust its size */
self->frame = frame_new(self);
+ frame_adjust_area(self->frame, FALSE, TRUE, TRUE);
return self;
}