aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-11-03 14:05:15 +0100
committerChristoph Lohmann <20h@r-36.net>2012-11-03 14:05:15 +0100
commit9888c5064badc60cd5e894f60451c2be762a481c (patch)
treefd4c4b9ca2d42baf4bab851ce609f29606a6c756
parentf8db65439a705f5e94c7a130ac44689e050e5654 (diff)
downloadst-9888c5064badc60cd5e894f60451c2be762a481c.tar.gz
st-9888c5064badc60cd5e894f60451c2be762a481c.tar.bz2
st-9888c5064badc60cd5e894f60451c2be762a481c.zip
Fixing a resize bug, if a smaller amount than the lineheight is resized.
Thanks c00kiemon5ter!
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 578c7ee..2654676 100644
--- a/st.c
+++ b/st.c
@@ -2742,8 +2742,6 @@ cresize(int width, int 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 @@ cresize(int width, int height)
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;