diff options
-rw-r--r-- | graphics/macgui/macwindowmanager.cpp | 1 | ||||
-rw-r--r-- | graphics/nine_patch.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp index 3d4ef3bc71..da573e6025 100644 --- a/graphics/macgui/macwindowmanager.cpp +++ b/graphics/macgui/macwindowmanager.cpp @@ -290,6 +290,7 @@ bool MacWindowManager::processEvent(Common::Event &event) { it--; BaseMacWindow *w = *it; + if (w->hasAllFocus() || w->getDimensions().contains(event.mouse.x, event.mouse.y)) { if (event.type == Common::EVENT_LBUTTONDOWN || event.type == Common::EVENT_LBUTTONUP) setActive(w->getId()); diff --git a/graphics/nine_patch.h b/graphics/nine_patch.h index 45e4e0918a..ebd6e1e17e 100644 --- a/graphics/nine_patch.h +++ b/graphics/nine_patch.h @@ -50,6 +50,9 @@ namespace Graphics { + class TransparentSurface; + class Surface; + struct NinePatchMark { int offset; int length; |