mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 12:56:22 +00:00
Fixing a resize bug, if a smaller amount than the lineheight is resized.
Thanks c00kiemon5ter!
This commit is contained in:
parent
f8db65439a
commit
9888c5064b
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -2742,8 +2742,6 @@ cresize(int width, int height)
|
||||||
|
|
||||||
col = (xw.w - 2*borderpx) / xw.cw;
|
col = (xw.w - 2*borderpx) / xw.cw;
|
||||||
row = (xw.h - 2*borderpx) / xw.ch;
|
row = (xw.h - 2*borderpx) / xw.ch;
|
||||||
if(col == term.col && row == term.row)
|
|
||||||
return;
|
|
||||||
|
|
||||||
tresize(col, row);
|
tresize(col, row);
|
||||||
xresize(col, row);
|
xresize(col, row);
|
||||||
|
@ -2752,6 +2750,8 @@ cresize(int width, int height)
|
||||||
|
|
||||||
void
|
void
|
||||||
resize(XEvent *e) {
|
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)
|
if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue