summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authormuennich <be.muennich@googlemail.com>2012-12-20 09:57:36 +0100
committermuennich <be.muennich@googlemail.com>2012-12-20 09:57:36 +0100
commit5106472d8b353ef34cdd867b3240f5a1815fb7d7 (patch)
treef76f6786223e18e8abb1acd44f5095a03c6e0474 /main.c
parent69a6df2762688b1a4fa5445c7124c699c0524c6f (diff)
downloadnsxiv-5106472d8b353ef34cdd867b3240f5a1815fb7d7.tar.zst
Fixed issue #72
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 2595889..55db498 100644
--- a/main.c
+++ b/main.c
@@ -479,10 +479,12 @@ void run(void) {
break;
case ConfigureNotify:
if (win_configure(&win, &ev.xconfigure)) {
- if (mode == MODE_IMAGE)
+ if (mode == MODE_IMAGE) {
+ img.dirty = true;
img.checkpan = true;
- else
+ } else {
tns.dirty = true;
+ }
if (!resized || win.fullscreen) {
redraw();
set_timeout(clear_resize, TO_REDRAW_RESIZE, false);