From 2d4264af286db2a746d600139a12472841c2677d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 16 Feb 2012 23:20:27 +0100 Subject: Added option -b: disable bar --- window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 673852c..f66703e 100644 --- a/window.c +++ b/window.c @@ -121,6 +121,7 @@ void win_init(win_t *win) { win->xwin = 0; win->pm = 0; win->fullscreen = false; + win->barh = 0; win->lbar = NULL; win->rbar = NULL; @@ -209,8 +210,10 @@ void win_open(win_t *win) { classhint.res_class = "sxiv"; XSetClassHint(e->dpy, win->xwin, &classhint); - win->barh = font.ascent + font.descent + 2 * V_TEXT_PAD; - win->h -= win->barh; + if (!options->hide_bar) { + win->barh = font.ascent + font.descent + 2 * V_TEXT_PAD; + win->h -= win->barh; + } if (options->fixed_win) win_set_sizehints(win); -- cgit v1.2.3