]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Calculation of width in fake_absoute_configure_notify was wrong for windows...
authorMichael Stapelberg <michael+git@stapelberg.de>
Fri, 17 Apr 2009 17:08:38 +0000 (19:08 +0200)
committerMichael Stapelberg <michael+git@stapelberg.de>
Fri, 17 Apr 2009 17:08:38 +0000 (19:08 +0200)
src/xcb.c

index 0b4531c9cec71be9182bbc0961e1696a94e121a7..b9ba009e17e1029f99ed84b181eca90ec4bb86fc 100644 (file)
--- 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);
 }