drw_resize should be called on mapping as well - sent - simple plaintext presen… | |
git clone git://git.suckless.org/sent | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d06622336b5e9ae65f69277eea1a292e3c0d6894 | |
parent 8215db707caea46a5ba1d8b6c43ed36390b7d5d8 | |
Author: Markus Teich <[email protected]> | |
Date: Sun, 3 May 2015 22:07:51 +0200 | |
drw_resize should be called on mapping as well | |
Diffstat: | |
M sent.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/sent.c b/sent.c | |
@@ -431,6 +431,7 @@ void resize(int width, int height) | |
xw.h = height; | |
xw.uw = usablewidth * width; | |
xw.uh = usableheight * height; | |
+ drw_resize(d, width, height); | |
} | |
void run() | |
@@ -592,7 +593,6 @@ void kpress(XEvent *e) | |
void configure(XEvent *e) | |
{ | |
resize(e->xconfigure.width, e->xconfigure.height); | |
- drw_resize(d, e->xconfigure.width, e->xconfigure.height); | |
if (slides[idx].img) | |
slides[idx].img->state &= ~(DRAWN | SCALED); | |
xdraw(); |