diff options
author | Bert Münnich <ber.t@gmx.com> | 2012-02-15 22:33:39 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2012-02-15 22:33:39 +0100 |
commit | c666d30eeacd6faf41dce50b301ad2fe3195fdb8 (patch) | |
tree | bd0085c26be88c75e13386f3304542345cea6702 /commands.c | |
parent | 011dac90c83d5440f2f228deab93f264d87b15d0 (diff) | |
download | nsxiv-c666d30eeacd6faf41dce50b301ad2fe3195fdb8.tar.zst |
Added it_toggle_bar command; default mapping: XK_b
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -76,6 +76,7 @@ bool it_switch_mode(arg_t a) { bool it_toggle_fullscreen(arg_t a) { win_toggle_fullscreen(&win); + /* redraw after next ConfigureNotify event */ set_timeout(redraw, TO_REDRAW_RESIZE, false); if (mode == MODE_IMAGE) img.checkpan = true; @@ -84,6 +85,15 @@ bool it_toggle_fullscreen(arg_t a) { return false; } +bool it_toggle_bar(arg_t a) { + win_toggle_bar(&win); + if (mode == MODE_IMAGE) + img.checkpan = img.dirty = true; + else + tns.dirty = true; + return true; +} + bool it_reload_image(arg_t a) { if (mode == MODE_IMAGE) { load_image(fileidx); |