From fd5caf2dab5917d1a10d504e8c1341317158b917 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 15 Nov 2015 12:17:52 +0100 Subject: winwidget.c: never scale down thumbnail list window this fixes a segfault when combining --scale-down and --thumbnails on a sufficiently large directory --- src/winwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/winwidget.c b/src/winwidget.c index 4d7a519..737d6bc 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -298,7 +298,9 @@ void winwidget_create_window(winwidget ret, int w, int h) XSetCommand(disp, ret->win, cmdargv, cmdargc); winwidget_register(ret); - if (opt.scale_down) { + + /* do not scale down a thumbnail list window, only those created from it */ + if (opt.scale_down && (ret->type != WIN_TYPE_THUMBNAIL)) { opt.geom_w = w; opt.geom_h = h; opt.geom_flags |= WidthValue | HeightValue; -- cgit v1.2.3