Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Pass events to window children
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 6, 2020
1 parent 52137f6 commit e5adfff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphics/macgui/macwindow.cpp
Expand Up @@ -514,6 +514,10 @@ bool MacWindow::processEvent(Common::Event &event) {
return false;
}

MacWidget *w = findEventHandler(event, _dims.left, _dims.top);
if (w && w->processEvent(event))
return true;

if (_callback)
return (*_callback)(click, event, _dataPtr);
else
Expand Down

0 comments on commit e5adfff

Please sign in to comment.