From d3cee832ce2ed02a0a3717935e1197d53db1a3dc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Mar 2019 18:14:12 +0530 Subject: [PATCH] Wayland: Dont try to focus window on create/show since it is not allowed anyway --- glfw/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glfw/window.c b/glfw/window.c index 4ce6edda1..d79de22d0 100644 --- a/glfw/window.c +++ b/glfw/window.c @@ -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)