mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-01 00:12:27 +00:00
Fixed compilation of Cocoa backend
This commit is contained in:
parent
b7b0e64471
commit
dd0f55e8d8
1 changed files with 3 additions and 1 deletions
|
@ -91,13 +91,15 @@ size_t s_skipMouseMoves;
|
||||||
|
|
||||||
void CheckGUICapture()
|
void CheckGUICapture()
|
||||||
{
|
{
|
||||||
const bool wantCapture = (MENU_Off == menuactive)
|
bool wantCapture = (MENU_Off == menuactive)
|
||||||
? (c_down == ConsoleState || c_falling == ConsoleState || chatmodeon)
|
? (c_down == ConsoleState || c_falling == ConsoleState || chatmodeon)
|
||||||
: (MENU_On == menuactive || MENU_OnNoPause == menuactive);
|
: (MENU_On == menuactive || MENU_OnNoPause == menuactive);
|
||||||
|
|
||||||
// [ZZ] check active event handlers that want the UI processing
|
// [ZZ] check active event handlers that want the UI processing
|
||||||
if (!wantCapture && E_CheckUiProcessors())
|
if (!wantCapture && E_CheckUiProcessors())
|
||||||
|
{
|
||||||
wantCapture = true;
|
wantCapture = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (wantCapture != GUICapture)
|
if (wantCapture != GUICapture)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue