From dd0f55e8d85c4ca4c2b79944c4dd5c36f7b5e6e6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 14 Feb 2017 22:02:47 +0200 Subject: [PATCH] Fixed compilation of Cocoa backend --- src/posix/cocoa/i_input.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/posix/cocoa/i_input.mm b/src/posix/cocoa/i_input.mm index 5f4aec8016..cb39c049a8 100644 --- a/src/posix/cocoa/i_input.mm +++ b/src/posix/cocoa/i_input.mm @@ -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) {