diff options
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp index f5d2c22250..f60728f2c1 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -56,7 +56,7 @@ void Dialog::open() { _result = 0; _visible = true; g_gui.openDialog(this); - + // Search for the first objects that wantsFocus() (if any) and give it the focus while (w && !w->wantsFocus()) { w = w->_next; @@ -239,7 +239,7 @@ void Dialog::handleMouseMoved(int x, int y, int button) { if (!w || !(w->getFlags() & WIDGET_TRACK_MOUSE)) { return; } - + w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y), button); } |