From bda70867ac50c35b3bb134cf408ce5ae3cf0c751 Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Sat, 26 Feb 2022 16:38:53 +0000 Subject: add config.h option for top statusbar (#231) Closes: https://github.com/nsxiv/nsxiv/issues/230 Co-authored-by: mamg22 <45301823+mamg22@users.noreply.github.com> --- thumbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index 04ef77f..b4c2de3 100644 --- a/thumbs.c +++ b/thumbs.c @@ -428,7 +428,8 @@ void tns_render(tns_t *tns) } r = cnt % tns->cols ? 1 : 0; tns->x = x = (win->w - MIN(cnt, tns->cols) * tns->dim) / 2 + tns->bw + 3; - tns->y = y = (win->h - (cnt / tns->cols + r) * tns->dim) / 2 + tns->bw + 3; + tns->y = y = (win->h - (cnt / tns->cols + r) * tns->dim) / 2 + tns->bw + 3 + + (win->bar.top ? win->bar.h : 0); tns->loadnext = *tns->cnt; tns->end = tns->first + cnt; -- cgit v1.2.3-70-g09d2