Bugfix: Correctly initialize automatically floating clients (some rendering issues)

next
Michael Stapelberg 2009-06-19 12:34:31 +02:00
parent a6d7f5451d
commit 51402b05f5
2 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void toggle_floating_mode(xcb_connection_t *conn, Client *client, bool automatic
client->floating_rect.x = client->rect.x;
client->floating_rect.y = client->rect.y;
/* Copy the size the other direction */
/* Copy size the other direction */
client->child_rect.width = client->floating_rect.width;
client->child_rect.height = client->floating_rect.height;

View File

@ -391,6 +391,10 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
/* Make sure it is on top of the other windows */
xcb_raise_window(conn, new->frame);
reposition_client(conn, new);
resize_client(conn, new);
/* redecorate_window flushes */
redecorate_window(conn, new);
}
new->initialized = true;