summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index d7fbfea3d..1ee8da60b 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1085,8 +1085,6 @@ static bool HandleDragDrop()
w = GetCallbackWnd();
- ResetObjectToPlace();
-
if (w != NULL) {
/* send an event in client coordinates. */
e.event = WE_DRAGDROP;
@@ -1095,6 +1093,9 @@ static bool HandleDragDrop()
e.we.dragdrop.widget = GetWidgetFromPos(w, e.we.dragdrop.pt.x, e.we.dragdrop.pt.y);
w->wndproc(w, &e);
}
+
+ ResetObjectToPlace();
+
return false;
}