diff options
author | Eugene Sandulenko | 2016-04-17 15:03:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-17 15:03:32 +0200 |
commit | befa0514cdf05e5a595bfd98d5c4f7d07541f24d (patch) | |
tree | 35b585aabba7361c68b93f6be28ea56dea49556c /gui/dialog.h | |
parent | dc2726059cc666d5a3a3a9b5080671542cb1b1cc (diff) | |
parent | be1fdf59bb80f963a4f97bfab49f59aca8d73d70 (diff) | |
download | scummvm-rg350-befa0514cdf05e5a595bfd98d5c4f7d07541f24d.tar.gz scummvm-rg350-befa0514cdf05e5a595bfd98d5c4f7d07541f24d.tar.bz2 scummvm-rg350-befa0514cdf05e5a595bfd98d5c4f7d07541f24d.zip |
Merge pull request #744 from salty-horse/dialog_focus_mouse
GUI: When dialogs gain focus, inform them of the current mouse position
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(); |