diff --git a/src/wl_window.c b/src/wl_window.c index 1d7cc9a0..e95a3aea 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -641,7 +641,7 @@ static void xdgToplevelHandleConfigure(void* data, _glfwInputWindowDamage(window); } - if (!window->wl.justCreated && !activated && window->autoIconify) + if (!window->wl.justCreated && !activated && window->monitor && window->autoIconify) _glfwPlatformIconifyWindow(window); _glfwInputWindowFocus(window, activated); window->wl.justCreated = GLFW_FALSE;