aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-15 22:33:39 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-15 22:33:39 +0100
commitc666d30eeacd6faf41dce50b301ad2fe3195fdb8 (patch)
treebd0085c26be88c75e13386f3304542345cea6702 /commands.c
parent011dac90c83d5440f2f228deab93f264d87b15d0 (diff)
downloadnsxiv-c666d30eeacd6faf41dce50b301ad2fe3195fdb8.tar.zst
Added it_toggle_bar command; default mapping: XK_b
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 921019b..0461f01 100644
--- a/commands.c
+++ b/commands.c
@@ -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);