nsxiv497880e
Fixed issue #42: image dragging broken by commit b845827
+4 −2
2 files changed
- M Makefile +1 −1
- M commands.c +3 −1
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20120227 | |
| 1 | + | VERSION = git-20120302 | |
| 2 | 2 | ||
| 3 | 3 | CC = gcc | |
| 4 | 4 | CFLAGS = -ansi -Wall -pedantic -O2 | |
| @@ -262,8 +262,10 @@ bool i_drag(arg_t a) { | |||
| 262 | 262 | if (dragging) | |
| 263 | 263 | next = XCheckIfEvent(win.env.dpy, &e, is_motionnotify, None); | |
| 264 | 264 | if ((!dragging || !next) && (dx != 0 || dy != 0)) { | |
| 265 | − | if (img_move(&img, dx, dy)) | |
| 265 | + | if (img_move(&img, dx, dy)) { | |
| 266 | 266 | img_render(&img); | |
| 267 | + | win_draw(&win); | |
| 268 | + | } | |
| 267 | 269 | dx = dy = 0; | |
| 268 | 270 | } | |
| 269 | 271 | } | |