mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
WAGE: Fixed window switching
This commit is contained in:
parent
e6c5c96b07
commit
73733594c1
@ -74,11 +74,11 @@ int MacWindowManager::add(bool scrollable) {
|
||||
_windows.push_back(w);
|
||||
_windowStack.push_back(w);
|
||||
|
||||
_activeWindow = _lastId;
|
||||
setActive(_lastId);
|
||||
|
||||
_lastId++;
|
||||
|
||||
return _activeWindow;
|
||||
return _lastId - 1;
|
||||
}
|
||||
|
||||
void MacWindowManager::setActive(int id) {
|
||||
@ -88,6 +88,8 @@ void MacWindowManager::setActive(int id) {
|
||||
if (_activeWindow != -1)
|
||||
_windows[_activeWindow]->setActive(false);
|
||||
|
||||
_activeWindow = id;
|
||||
|
||||
_windows[id]->setActive(true);
|
||||
|
||||
_windowStack.remove(_windows[id]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user