X Tutup
Skip to content

Commit 07795be

Browse files
dhruv0154sev-
authored andcommitted
GRAPHICS: MACGUI: fix active window while scrolling.
1 parent 438082b commit 07795be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphics/macgui/macwindowmanager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,11 @@ bool MacWindowManager::processEvent(Common::Event &event) {
11041104
return true;
11051105
}
11061106

1107+
if (event.type == Common::EVENT_WHEELUP || event.type == Common::EVENT_WHEELDOWN) {
1108+
MacWindow *w = findWindowAtPoint(event.mouse.x, event.mouse.y);
1109+
if (w) setActiveWindow(w->getId());
1110+
}
1111+
11071112
if (_activeWindow != -1) {
11081113
if ((_windows[_activeWindow]->isEditable() && _windows[_activeWindow]->getType() == kWindowWindow &&
11091114
((MacWindow *)_windows[_activeWindow])->getInnerDimensions().contains(event.mouse.x, event.mouse.y)) ||

0 commit comments

Comments
 (0)
X Tutup