Bugfix: restore the original width/height with X11 border when restarting (Thanks Merovius)

This commit is contained in:
Michael Stapelberg
2011-02-21 03:13:27 +01:00
parent f34b045619
commit b6f81fe43c
2 changed files with 7 additions and 1 deletions

View File

@ -140,6 +140,7 @@ void render_con(Con *con, bool render_fullscreen) {
*inset = rect_add(*inset, con_border_style_rect(con));
/* Obey x11 border */
DLOG("X11 border: %d\n", con->border_width);
inset->width -= (2 * con->border_width);
inset->height -= (2 * con->border_width);