diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-11-03 14:05:15 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-11-03 14:05:15 +0100 |
commit | 9888c5064badc60cd5e894f60451c2be762a481c (patch) | |
tree | fd4c4b9ca2d42baf4bab851ce609f29606a6c756 /st.c | |
parent | f8db65439a705f5e94c7a130ac44689e050e5654 (diff) | |
download | st-9888c5064badc60cd5e894f60451c2be762a481c.tar.gz st-9888c5064badc60cd5e894f60451c2be762a481c.zip |
Fixing a resize bug, if a smaller amount than the lineheight is resized.
Thanks c00kiemon5ter!
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2742,8 +2742,6 @@ cresize(int width, int height) | |||
2742 | 2742 | ||
2743 | col = (xw.w - 2*borderpx) / xw.cw; | 2743 | col = (xw.w - 2*borderpx) / xw.cw; |
2744 | row = (xw.h - 2*borderpx) / xw.ch; | 2744 | row = (xw.h - 2*borderpx) / xw.ch; |
2745 | if(col == term.col && row == term.row) | ||
2746 | return; | ||
2747 | 2745 | ||
2748 | tresize(col, row); | 2746 | tresize(col, row); |
2749 | xresize(col, row); | 2747 | xresize(col, row); |
@@ -2752,6 +2750,8 @@ cresize(int width, int height) | |||
2752 | 2750 | ||
2753 | void | 2751 | void |
2754 | resize(XEvent *e) { | 2752 | resize(XEvent *e) { |
2753 | fprintf(stderr, "resize -> %d,%d\n", e->xconfigure.width, | ||
2754 | e->xconfigure.height); | ||
2755 | if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h) | 2755 | if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h) |
2756 | return; | 2756 | return; |
2757 | 2757 | ||