mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Fixed mouse capturing when video isn't initialized yet
This commit is contained in:
parent
15a269db9d
commit
2c3d9e3ab8
1 changed files with 2 additions and 1 deletions
|
@ -567,6 +567,8 @@ void CocoaVideo::SetWindowVisible(bool visible)
|
|||
{
|
||||
[video->m_window orderOut:nil];
|
||||
}
|
||||
|
||||
I_SetNativeMouse(!visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1248,5 +1250,4 @@ NSSize I_GetContentViewSize(const NSWindow* const window)
|
|||
void I_SetMainWindowVisible(bool visible)
|
||||
{
|
||||
CocoaVideo::SetWindowVisible(visible);
|
||||
I_SetNativeMouse(!visible);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue