GLFW: X11: Include X Shape extension headers

From upstream: https://github.com/glfw/glfw/commit/68e4261d73295cc280ee3d060d421e0ace5d8d11.
This commit is contained in:
Luflosi
2020-07-16 23:50:26 +02:00
parent 6a472bd6da
commit d7cd6edaa5
2 changed files with 5 additions and 2 deletions
+3
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"
+2 -2
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;