]> Dogcows Code - chaz/openbox/commitdiff
adjust the frame's size before placing the window so we know how much decor it has
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 01:32:28 +0000 (01:32 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 01:32:28 +0000 (01:32 +0000)
openbox/client.c

index 5cc1df9a3cab46b28eac80d88bcd8784f4c1f6ed..b41ec8c8203c22ef81ab74c38569e9bc1151d8b3 100644 (file)
@@ -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
This page took 0.024546 seconds and 4 git commands to generate.