GLFW: X11: Include X Shape extension headers

From upstream: 68e4261d73.
This commit is contained in:
Luflosi 2020-07-16 23:50:26 +02:00
parent 6a472bd6da
commit d7cd6edaa5
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0
2 changed files with 5 additions and 2 deletions

3
glfw/x11_platform.h vendored
View File

@ -51,6 +51,9 @@
// The XInput extension provides raw mouse motion input
#include <X11/extensions/XInput2.h>
// The Shape extension provides custom window shapes
#include <X11/extensions/shape.h>
// The libxkb library is used for improved keyboard support
#include "xkb_glfw.h"
#include "backend_utils.h"

4
glfw/x11_window.c vendored
View File

@ -2598,13 +2598,13 @@ void _glfwPlatformSetWindowMousePassthrough(_GLFWwindow* window, bool enabled)
{
Region region = XCreateRegion();
XShapeCombineRegion(_glfw.x11.display, window->x11.handle,
2/*ShapeInput*/, 0, 0, region, 0/*ShapeSet*/);
ShapeInput, 0, 0, region, ShapeSet);
XDestroyRegion(region);
}
else
{
XShapeCombineMask(_glfw.x11.display, window->x11.handle,
2/*ShapeInput*/, 0, 0, None, 0/*ShapeSet*/);
ShapeInput, 0, 0, None, ShapeSet);
}
window->mousePassthrough = enabled;