X11: Fix missing checks for EWMH attention atoms

(cherry picked from commit 9b6d68ec70)
This commit is contained in:
Camilla Löwy 2019-12-16 15:08:54 +01:00
parent 8dd40f1c48
commit 5615c16439

View File

@ -2420,6 +2420,9 @@ void _glfwPlatformHideWindow(_GLFWwindow* window)
void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
{
if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION)
return;
sendEventToWM(window,
_glfw.x11.NET_WM_STATE,
_NET_WM_STATE_ADD,