forked from Mirrors/openclonk
mac: Fix exclusive dialogs not clickable in game mode
parent
a28cad6947
commit
2c597ba56d
|
@ -879,14 +879,11 @@ namespace C4GUI
|
|||
// main message loop
|
||||
while (fShow)
|
||||
{
|
||||
while (fShow)
|
||||
{
|
||||
// dialog idle proc
|
||||
OnIdle();
|
||||
// handle messages - this may block until the next timer
|
||||
if (!Application.ScheduleProcs())
|
||||
return false; // game GUI and lobby will deleted in Game::Clear()
|
||||
}
|
||||
// dialog idle proc
|
||||
OnIdle();
|
||||
// handle messages - this may block until the next timer
|
||||
if (!Application.ScheduleProcs())
|
||||
return false; // game GUI and lobby will deleted in Game::Clear()
|
||||
}
|
||||
// return whether dlg was OK
|
||||
return fOK;
|
||||
|
|
|
@ -211,7 +211,7 @@ int32_t mouseButtonFromEvent(NSEvent* event, DWORD* modifierFlags)
|
|||
DWORD keyMask = flags;
|
||||
if ([event type] == NSScrollWheel)
|
||||
keyMask |= (int)[event deltaY] << 16;
|
||||
::C4GUI::MouseMove(button, x, y, keyMask, viewport);
|
||||
::C4GUI::MouseMove(button, x, y, keyMask, Application.isEditor ? viewport : NULL);
|
||||
}
|
||||
else if (viewport)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue