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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user