mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 23:52: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];
|
[video->m_window orderOut:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
I_SetNativeMouse(!visible);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1248,5 +1250,4 @@ NSSize I_GetContentViewSize(const NSWindow* const window)
|
||||||
void I_SetMainWindowVisible(bool visible)
|
void I_SetMainWindowVisible(bool visible)
|
||||||
{
|
{
|
||||||
CocoaVideo::SetWindowVisible(visible);
|
CocoaVideo::SetWindowVisible(visible);
|
||||||
I_SetNativeMouse(!visible);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue