Wayland: Dont try to focus window on create/show since it is not allowed anyway

This commit is contained in:
Kovid Goyal 2019-03-07 18:14:12 +05:30
parent 8129246a10
commit d3cee832ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
glfw/window.c vendored
View File

@ -277,8 +277,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
if (wndconfig.visible)
{
_glfwPlatformShowWindow(window);
#ifndef _GLFW_WAYLAND
if (wndconfig.focused)
_glfwPlatformFocusWindow(window);
#endif
}
}
@ -813,8 +815,10 @@ GLFWAPI void glfwShowWindow(GLFWwindow* handle)
_glfwPlatformShowWindow(window);
#ifndef _GLFW_WAYLAND
if (window->focusOnShow)
_glfwPlatformFocusWindow(window);
#endif
}
GLFWAPI void glfwRequestWindowAttention(GLFWwindow* handle)