diff options
author | James Brown | 2002-07-08 13:54:11 +0000 |
---|---|---|
committer | James Brown | 2002-07-08 13:54:11 +0000 |
commit | 06d85ff2cbeac22019f9e5d7e6ee9e6a41c9e7b0 (patch) | |
tree | dac55e68033915eb34b40959f5a233d54966f633 | |
parent | 7be66a5f0531a6bf183ee53a6d5b575d3815261e (diff) | |
download | scummvm-rg350-06d85ff2cbeac22019f9e5d7e6ee9e6a41c9e7b0.tar.gz scummvm-rg350-06d85ff2cbeac22019f9e5d7e6ee9e6a41c9e7b0.tar.bz2 scummvm-rg350-06d85ff2cbeac22019f9e5d7e6ee9e6a41c9e7b0.zip |
Fix mouseout
svn-id: r4497
-rw-r--r-- | gui/dialog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp index 7bfd85c2e6..2131f21983 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -67,8 +67,6 @@ void Dialog::handleKey(char key, int modifiers) void Dialog::handleMouseMoved(int x, int y, int button) { Widget *w = findWidget(x - _x, y - _y); - if (!w) - return; if (_mouseWidget != w) { if (_mouseWidget) @@ -76,7 +74,12 @@ void Dialog::handleMouseMoved(int x, int y, int button) if (w) w->handleMouseEntered(button); _mouseWidget = w; - } else if (w->getFlags() & WIDGET_TRACK_MOUSE) { + } + + if (!w) + return; + + if (w->getFlags() & WIDGET_TRACK_MOUSE) { w->handleMouseMoved(x - _x - w->_x, y - _y - w->_y, button); } } |