diff options
author | Ori Avtalion | 2016-04-06 17:22:02 +0300 |
---|---|---|
committer | Ori Avtalion | 2016-04-06 17:51:30 +0300 |
commit | be1fdf59bb80f963a4f97bfab49f59aca8d73d70 (patch) | |
tree | dcbcec9a6824d0ee4d0e53d9b19fca02b8b1c0b3 /gui/dialog.h | |
parent | 8fa543f58f251ef5c695f6c288ecd0303ec14144 (diff) | |
download | scummvm-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.h')
-rw-r--r-- | gui/dialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/dialog.h b/gui/dialog.h index 593ee13458..0e06effabd 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -82,7 +82,7 @@ public: virtual void reflowLayout(); virtual void lostFocus(); - virtual void receivedFocus() {} + virtual void receivedFocus(int x = -1, int y = -1) { if (x >= 0 && y >= 0) handleMouseMoved(x, y, 0); } protected: virtual void open(); |