Commit fd5caf2d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

winwidget.c: never scale down thumbnail list window

this fixes a segfault when combining --scale-down and --thumbnails on a
sufficiently large directory
parent f23f146c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;