X11: Fix missing checks for EWMH attention atoms

From upstream: 9b6d68ec70.
This commit is contained in:
Luflosi 2019-12-18 18:40:51 +01:00
parent dd8b97a86c
commit e40616a0db
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

3
glfw/x11_window.c vendored
View File

@ -2226,6 +2226,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,