Fixed mouse capturing when video isn't initialized yet

This commit is contained in:
alexey.lysiuk 2015-12-28 16:19:08 +02:00
parent 15a269db9d
commit 2c3d9e3ab8

View file

@ -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);
} }