summaryrefslogtreecommitdiff
path: root/src/winwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/winwidget.c')
-rw-r--r--src/winwidget.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 855e0da..bf7b989 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -531,16 +531,18 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
sh, dx, dy,
dw, dh, 1,
gib_imlib_image_has_alpha(winwid->im), alias);
- if (opt.caption_path)
- winwidget_update_caption(winwid);
- if (opt.draw_filename)
- feh_draw_filename(winwid);
- if (opt.draw_actions)
- feh_draw_actions(winwid);
- if ((opt.mode == MODE_ZOOM) && !alias)
- feh_draw_zoom(winwid);
- if (opt.info_cmd)
- feh_draw_info(winwid);
+ if (opt.mode == MODE_NORMAL) {
+ if (opt.caption_path)
+ winwidget_update_caption(winwid);
+ if (opt.draw_filename)
+ feh_draw_filename(winwid);
+ if (opt.draw_actions)
+ feh_draw_actions(winwid);
+ if ((opt.mode == MODE_ZOOM) && !alias)
+ feh_draw_zoom(winwid);
+ if (opt.info_cmd)
+ feh_draw_info(winwid);
+ }
XSetWindowBackgroundPixmap(disp, winwid->win, winwid->bg_pmap);
XClearWindow(disp, winwid->win);
return;