diff options
author | Bert Münnich <be.muennich@gmail.com> | 2013-02-12 17:55:47 +0100 |
---|---|---|
committer | Bert Münnich <be.muennich@gmail.com> | 2013-03-19 21:14:32 +0100 |
commit | 30802cec0f233aa9977256684cb749df6c7e28c0 (patch) | |
tree | bc015fb96b88e7cbf882ce88d5353625f3102143 /commands.c | |
parent | f3298400e6704844aeb1d3e0951e84b4236d2302 (diff) | |
download | nsxiv-30802cec0f233aa9977256684cb749df6c7e28c0.tar.zst |
Spawn info script & update bar contents only when needed
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -33,6 +33,7 @@ void cleanup(void); void remove_file(int, bool); void load_image(int); +void open_info(void); void redraw(void); void reset_cursor(void); void animate(void); @@ -92,10 +93,13 @@ bool it_toggle_fullscreen(arg_t a) bool it_toggle_bar(arg_t a) { win_toggle_bar(&win); - if (mode == MODE_IMAGE) + if (mode == MODE_IMAGE) { img.checkpan = img.dirty = true; - else + if (win.bar.h > 0) + open_info(); + } else { tns.dirty = true; + } return true; } |