path: root/src/keyevents.c
diff options
authorDaniel Friesel <>2020-06-17 19:10:36 +0200
committerDaniel Friesel <>2020-06-17 19:10:36 +0200
commitf0361c5ea6fcdc181863286dbe4de36003eccb9d (patch)
treea4f8f65ba9ca7f0b3be61af46b037a83cf69c1a1 /src/keyevents.c
parent5dc616eadfd3e66cb89e9fc22c714c2edd2a77f2 (diff)
toggle_pause: Re-render the image instead of reloading
When the slideshow state is toggled, the info line needs to be redrawn as it may use the %a format specifier (which shows whether the slideshow is running or paused). feh_reload_image does this, but also resets all pan and zoom options and reloads the image from disk. winwidget_render_image only redraws info, caption and similar lines in this case, which is more efficient and does not incur unwanted side-effects.
Diffstat (limited to 'src/keyevents.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 761ec3c..a5526a2 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -710,8 +710,8 @@ void feh_event_handle_generic(winwidget winwid, unsigned int state, KeySym keysy
else if (feh_is_kp(EVENT_toggle_pause, state, keysym, button)) {
- /* We need to reload the image to update the info string immediately. */
- feh_reload_image(winwid, 0, 0);
+ /* We need to re-render the image to update the info string immediately. */
+ winwidget_render_image(winwid, 0, 0);
else if (feh_is_kp(EVENT_save_image, state, keysym, button)) {