diff options
author | Bert Münnich <ber.t@gmx.com> | 2012-02-16 23:20:27 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2012-02-16 23:20:27 +0100 |
commit | 2d4264af286db2a746d600139a12472841c2677d (patch) | |
tree | 53a65b90464e29d5e1dd5b3504a9a7bedb6e712d /window.c | |
parent | b418df7afc01796254fdf24d4afe12da3f0795bd (diff) |
Added option -b: disable bar
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |