aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-03-02 19:19:27 +0100
committerBert Münnich <ber.t@gmx.com>2012-03-02 19:19:27 +0100
commit497880e102876e49cb496fcf9622c969d721c2b2 (patch)
tree77ed35bdc79e011de6cfdcfd827132fa1fafd816
parent751ebb3b29367bdcfd4e1956a36fa8f8f49f15a3 (diff)
downloadnsxiv-497880e102876e49cb496fcf9622c969d721c2b2.tar.zst
Fixed issue #42: image dragging broken by commit b845827
-rw-r--r--Makefile2
-rw-r--r--commands.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 34c2283..f0a46d5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20120227
+VERSION = git-20120302
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
diff --git a/commands.c b/commands.c
index 0461f01..c7c817f 100644
--- a/commands.c
+++ b/commands.c
@@ -262,8 +262,10 @@ bool i_drag(arg_t a) {
if (dragging)
next = XCheckIfEvent(win.env.dpy, &e, is_motionnotify, None);
if ((!dragging || !next) && (dx != 0 || dy != 0)) {
- if (img_move(&img, dx, dy))
+ if (img_move(&img, dx, dy)) {
img_render(&img);
+ win_draw(&win);
+ }
dx = dy = 0;
}
}