aboutsummaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 3 insertions, 1 deletions
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;
}
}