From 4ec7876972d268fa835852453a0e3c800cf16698 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 2 Jan 2009 03:03:06 +0000 Subject: Reverted the handling of mouse move events, now the slider widget should be highlighted correctly again. svn-id: r35667 --- gui/dialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gui') 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); } -- cgit v1.2.3