From: Michael Stapelberg Date: Fri, 17 Apr 2009 17:08:38 +0000 (+0200) Subject: Bugfix: Calculation of width in fake_absoute_configure_notify was wrong for windows... X-Git-Tag: 3.a-bf1~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12cc8b78af07bef6d024fbc1f348bcb560dae9c5;p=i3%2Fi3 Bugfix: Calculation of width in fake_absoute_configure_notify was wrong for windows with aspect ratio (Thanks Mirko) --- diff --git a/src/xcb.c b/src/xcb.c index 0b4531c9..b9ba009e 100644 --- a/src/xcb.c +++ b/src/xcb.c @@ -222,8 +222,8 @@ void fake_absolute_configure_notify(xcb_connection_t *conn, Client *client) { absolute.x = client->rect.x; absolute.y = client->rect.y; - absolute.width = client->rect.width - client->child_rect.x; - absolute.height = client->rect.height - client->child_rect.y; + absolute.width = client->rect.width - (2 * client->child_rect.x); + absolute.height = client->rect.height - (2 * client->child_rect.y); fake_configure_notify(conn, absolute, client->child); }