From 497880e102876e49cb496fcf9622c969d721c2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Fri, 2 Mar 2012 19:19:27 +0100 Subject: Fixed issue #42: image dragging broken by commit b845827 --- commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'commands.c') 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; } } -- cgit v1.2.3