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

@ -352,6 +352,9 @@ struct Client {
int base_height;
int base_width;
/** The amount of pixels which X will draw around the client. */
int border_width;
/** contains the minimum increment size as specified for the window
* (in pixels). */
int width_increment;