aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
authorOri Avtalion2016-04-06 17:22:02 +0300
committerOri Avtalion2016-04-06 17:51:30 +0300
commitbe1fdf59bb80f963a4f97bfab49f59aca8d73d70 (patch)
treedcbcec9a6824d0ee4d0e53d9b19fca02b8b1c0b3 /gui/dialog.cpp
parent8fa543f58f251ef5c695f6c288ecd0303ec14144 (diff)
downloadscummvm-rg350-be1fdf59bb80f963a4f97bfab49f59aca8d73d70.tar.gz
scummvm-rg350-be1fdf59bb80f963a4f97bfab49f59aca8d73d70.tar.bz2
scummvm-rg350-be1fdf59bb80f963a4f97bfab49f59aca8d73d70.zip
GUI: When dialogs gain focus, inform them of the current mouse position
Previously, they only reacted to the mouse position once it was moved. This meant that if the cursor was on a button that just gained focus, it did not highlight. Fixes #7101.
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 315c24e9bf..075a3bb533 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -119,6 +119,8 @@ void Dialog::reflowLayout() {
}
void Dialog::lostFocus() {
+ _dragWidget = NULL;
+
if (_tickleWidget) {
_tickleWidget->lostFocus();
}