summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-22 01:32:28 +0000
committerDana Jansens <danakj@orodu.net>2007-05-22 01:32:28 +0000
commite8bac610ad445d7843fc061bfd5e82761a912d61 (patch)
tree1c324623372e202fe0d84e1945014761d6e7fb10 /openbox
parenta0941554f6cfc29dfd4b0da0b5ce83fdd719efa7 (diff)
adjust the frame's size before placing the window so we know how much decor it has
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 5cc1df9a..b41ec8c8 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -359,6 +359,11 @@ void client_manage(Window window)
activate = TRUE;
}
+ /* adjust the frame to the client's size before showing or placing
+ the window */
+ frame_adjust_area(self->frame, FALSE, TRUE, FALSE);
+ frame_adjust_client_area(self->frame);
+
/* figure out placement for the window */
if (ob_state() == OB_STATE_RUNNING) {
gboolean transient;
@@ -398,11 +403,6 @@ void client_manage(Window window)
ob_debug(" but session requested %d %d instead, overriding\n",
self->session->x, self->session->y);
- /* adjust the frame to the client's size before showing the window */
- frame_adjust_area(self->frame, FALSE, TRUE, FALSE);
- frame_adjust_client_area(self->frame);
-
-
/* do this after the window is placed, so the premax/prefullscreen numbers
won't be all wacko!!
also, this moves the window to the position where it has been placed