Fixed compilation of Cocoa backend

This commit is contained in:
alexey.lysiuk 2017-02-14 22:02:47 +02:00
parent b7b0e64471
commit dd0f55e8d8

View file

@ -91,13 +91,15 @@ size_t s_skipMouseMoves;
void CheckGUICapture()
{
const bool wantCapture = (MENU_Off == menuactive)
bool wantCapture = (MENU_Off == menuactive)
? (c_down == ConsoleState || c_falling == ConsoleState || chatmodeon)
: (MENU_On == menuactive || MENU_OnNoPause == menuactive);
// [ZZ] check active event handlers that want the UI processing
if (!wantCapture && E_CheckUiProcessors())
{
wantCapture = true;
}
if (wantCapture != GUICapture)
{