mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 14:22:50 +00:00
a228a8b447
The previous implementation was based on the incorrect assumption that the _NET_WM_STATE_ABOVE state is always retained on unmapped windows. According to EWMH the WM should remove the _NET_WM_STATE property when a window is unmapped. This commit moves the adding of _NET_WM_STATE_ABOVE to before mapping the window during glfwShowWindow. The logic for removing _NET_WM_STATE_ABOVE from hidden windows is retained, as EWMH still allows WMs to leave the window property on unmapped window. Fixes #2276