Obey the client’s border_width setting (Thanks shatter)

xterm by default sets a border_width of 2. This was not taken into
account when determining the size of the window by i3. Still, you
probably want to set this to 0 in your .Xresources as the pixels
are just lost.
This commit is contained in:
Michael Stapelberg
2009-09-26 13:47:48 +02:00
parent b898058105
commit 7be41492c6
4 changed files with 13 additions and 3 deletions

View File

@ -295,6 +295,9 @@ void resize_client(xcb_connection_t *conn, Client *client) {
break;
}
rect->width -= (2 * client->border_width);
rect->height -= (2 * client->border_width);
/* Obey the ratio, if any */
if (client->proportional_height != 0 &&
client->proportional_width != 0) {