diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-11-15 12:17:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-11-15 12:17:52 +0100 |
commit | fd5caf2dab5917d1a10d504e8c1341317158b917 (patch) | |
tree | 0cdd535bd6abf636efe16cd4f98a6e098c026d0c | |
parent | f23f146cf68a52dbb1744d1a9e6f06baff4b32ad (diff) |
winwidget.c: never scale down thumbnail list window
this fixes a segfault when combining --scale-down and --thumbnails on a
sufficiently large directory
-rw-r--r-- | src/winwidget.c | 4 |
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; |