From e6d9c7bb9ebe1efc8fdd3051bba76708a9bf20ae Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 13 Jun 2009 12:30:28 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20use=20the=20minimum?= =?UTF-8?q?=20amount=20of=20pixels=20for=20dock=20clients=20which=20don?= =?UTF-8?q?=E2=80=99t=20set=20size=20hints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manage.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/manage.c b/src/manage.c index e7b7c5f6..e84c6345 100644 --- a/src/manage.c +++ b/src/manage.c @@ -137,6 +137,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, utf8_title_cookie, title_cookie, class_cookie; uint32_t mask = 0; uint32_t values[3]; + uint16_t original_height = height; /* We are interested in property changes */ mask = XCB_CW_EVENT_MASK; @@ -276,13 +277,13 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, TODO: bars at the top */ new->desired_height = strut[3]; if (new->desired_height == 0) { - LOG("Client wanted to be 0 pixels high, using the window's height (%d)\n", height); - new->desired_height = height; + LOG("Client wanted to be 0 pixels high, using the window's height (%d)\n", original_height); + new->desired_height = original_height; } LOG("the client wants to be %d pixels high\n", new->desired_height); } else { - LOG("The client didn't specify space to reserve at the screen edge, using its height (%d)\n", height); - new->desired_height = height; + LOG("The client didn't specify space to reserve at the screen edge, using its height (%d)\n", original_height); + new->desired_height = original_height; } } else { /* If it’s not a dock, we can check on which workspace we should put it. */