Fixing a resize bug, if a smaller amount than the lineheight is resized. Thanks c00kiemon5ter!
Christoph Lohmann 20h@r-36.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
st.c
→
st.c
@@ -2742,8 +2742,6 @@ xw.h = height;
col = (xw.w - 2*borderpx) / xw.cw; row = (xw.h - 2*borderpx) / xw.ch; - if(col == term.col && row == term.row) - return; tresize(col, row); xresize(col, row);@@ -2752,6 +2750,8 @@ }
void resize(XEvent *e) { + fprintf(stderr, "resize -> %d,%d\n", e->xconfigure.width, + e->xconfigure.height); if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h) return;