t* My version of sent URI git clone git://git.codevoid.de/sent-sdk.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 6df3d039a02f6304fd6769717f8613f6012d2eb6 DIR parent 0ff43aaf341e89086fea10605021fb4a94c835ad URI Author: Markus Teich <markus.teich@stusta.mhn.de> Date: Sat, 2 Sep 2017 01:09:36 +0200 load all images before starting the preso Diffstat: M sent.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- DIR diff --git a/sent.c b/sent.c t@@ -436,12 +436,7 @@ advance(const Arg *arg) if (slides[idx].img) slides[idx].img->state &= ~SCALED; idx = new_idx; - ffload(&slides[idx]); xdraw(); - if (slidecount > idx + 1) - ffload(&slides[idx + 1]); - if (0 < idx) - ffload(&slides[idx - 1]); } } t@@ -533,6 +528,7 @@ void xinit() { XTextProperty prop; + unsigned int i; if (!(xw.dpy = XOpenDisplay(NULL))) die("sent: Unable to open display"); t@@ -560,7 +556,8 @@ xinit() XSetWindowBackground(xw.dpy, xw.win, sc[ColBg].pixel); xloadfonts(); - ffload(&slides[0]); + for (i = 0; i < slidecount; i++) + ffload(&slides[i]); XStringListToTextProperty(&argv0, 1, &prop); XSetWMName(xw.dpy, xw.win, &prop);