summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-11-15 12:17:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-11-15 12:17:52 +0100
commitfd5caf2dab5917d1a10d504e8c1341317158b917 (patch)
tree0cdd535bd6abf636efe16cd4f98a6e098c026d0c /src
parentf23f146cf68a52dbb1744d1a9e6f06baff4b32ad (diff)
winwidget.c: never scale down thumbnail list window
this fixes a segfault when combining --scale-down and --thumbnails on a sufficiently large directory
Diffstat (limited to 'src')
-rw-r--r--src/winwidget.c4
1 files changed, 3 insertions, 1 deletions
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;