X11: Fix missing checks for EWMH attention atoms

This commit is contained in:
Camilla Löwy 2019-12-16 15:08:54 +01:00
parent 4837b78ffe
commit 9b6d68ec70

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,