aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/dialog.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 0cead248c9..7aea3cb722 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -294,10 +294,7 @@ void Dialog::handleMouseMoved(int x, int y, int button) {
_mouseWidget = w;
}
- // We only sent mouse move events under the following conditions:
- // 1) We have a widget in drag mode
- // 2) The widget wants to track the mouse movement
- w = _dragWidget;
+ // We only sent mouse move events when the widget requests to be informed about them.
if (w && (w->getFlags() & WIDGET_TRACK_MOUSE))
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y), button);
}