X11: Fix BadMatch focusing a window on non-EWMH WM
From upstream: aa5e313561.
This commit is contained in:
parent
fdb915d0c8
commit
053de5763a
2
glfw/x11_window.c
vendored
2
glfw/x11_window.c
vendored
@ -2255,7 +2255,7 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window)
|
||||
{
|
||||
if (_glfw.x11.NET_ACTIVE_WINDOW)
|
||||
sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0);
|
||||
else
|
||||
else if (_glfwPlatformWindowVisible(window))
|
||||
{
|
||||
XRaiseWindow(_glfw.x11.display, window->x11.handle);
|
||||
XSetInputFocus(_glfw.x11.display, window->x11.handle,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user