adjust the frame's size before placing the window so we know how much decor it has
This commit is contained in:
parent
a0941554f6
commit
e8bac610ad
1 changed files with 5 additions and 5 deletions
|
@ -359,6 +359,11 @@ void client_manage(Window window)
|
||||||
activate = TRUE;
|
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 */
|
/* figure out placement for the window */
|
||||||
if (ob_state() == OB_STATE_RUNNING) {
|
if (ob_state() == OB_STATE_RUNNING) {
|
||||||
gboolean transient;
|
gboolean transient;
|
||||||
|
@ -398,11 +403,6 @@ void client_manage(Window window)
|
||||||
ob_debug(" but session requested %d %d instead, overriding\n",
|
ob_debug(" but session requested %d %d instead, overriding\n",
|
||||||
self->session->x, self->session->y);
|
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
|
/* do this after the window is placed, so the premax/prefullscreen numbers
|
||||||
won't be all wacko!!
|
won't be all wacko!!
|
||||||
also, this moves the window to the position where it has been placed
|
also, this moves the window to the position where it has been placed
|
||||||
|
|
Loading…
Reference in a new issue