Move management of shared state to shared code

Platform code may not modify shared state.

Related to #1568.
This commit is contained in:
Camilla Löwy
2020-07-06 23:37:33 +02:00
parent 7da3e52c86
commit 6d2003d07a
5 changed files with 14 additions and 19 deletions
-1
View File
@@ -1373,7 +1373,6 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)
void _glfwPlatformSetWindowMousePassthrough(_GLFWwindow* window, GLFWbool enabled)
{
window->mousePassthrough = enabled;
@autoreleasepool {
[window->ns.object setIgnoresMouseEvents:enabled];
}