From 51402b05f5eeed44817c79f1fef989a45b69831f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 19 Jun 2009 12:34:31 +0200 Subject: [PATCH] Bugfix: Correctly initialize automatically floating clients (some rendering issues) --- src/floating.c | 2 +- src/manage.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/floating.c b/src/floating.c index 310b6a39..7cf4b6dc 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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; diff --git a/src/manage.c b/src/manage.c index 1f79cb94..f4edc055 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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; -- 2.39.5