[hackers] [st] Fixing a resize bug, if a smaller amount than the lineheight is resized. || Christoph Lohmann
changeset: 383:a242f46adf1a
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sat Nov 03 14:05:15 2012 +0100
files: st.c
description:
Fixing a resize bug, if a smaller amount than the lineheight is resized.
Thanks c00kiemon5ter!
diff -r c22d6d6a322d -r a242f46adf1a st.c
--- a/st.c Sat Nov 03 13:43:20 2012 +0100
+++ b/st.c Sat Nov 03 14:05:15 2012 +0100
_AT_@ -2742,8 +2742,6 @@
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);
_AT_@ -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;
Received on Sat Nov 03 2012 - 18:22:53 CET
This archive was generated by hypermail 2.3.0
: Sat Nov 03 2012 - 18:24:08 CET