Bugfix: Correctly initialize automatically floating clients (some rendering issues)
This commit is contained in:
parent
a6d7f5451d
commit
51402b05f5
@ -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.x = client->rect.x;
|
||||||
client->floating_rect.y = client->rect.y;
|
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.width = client->floating_rect.width;
|
||||||
client->child_rect.height = client->floating_rect.height;
|
client->child_rect.height = client->floating_rect.height;
|
||||||
|
|
||||||
|
@ -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 */
|
/* Make sure it is on top of the other windows */
|
||||||
xcb_raise_window(conn, new->frame);
|
xcb_raise_window(conn, new->frame);
|
||||||
|
reposition_client(conn, new);
|
||||||
|
resize_client(conn, new);
|
||||||
|
/* redecorate_window flushes */
|
||||||
|
redecorate_window(conn, new);
|
||||||
}
|
}
|
||||||
|
|
||||||
new->initialized = true;
|
new->initialized = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user