GLFW: X11: Include X Shape extension headers
From upstream: 68e4261d73.
This commit is contained in:
parent
6a472bd6da
commit
d7cd6edaa5
3
glfw/x11_platform.h
vendored
3
glfw/x11_platform.h
vendored
@ -51,6 +51,9 @@
|
|||||||
// The XInput extension provides raw mouse motion input
|
// The XInput extension provides raw mouse motion input
|
||||||
#include <X11/extensions/XInput2.h>
|
#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
|
// The libxkb library is used for improved keyboard support
|
||||||
#include "xkb_glfw.h"
|
#include "xkb_glfw.h"
|
||||||
#include "backend_utils.h"
|
#include "backend_utils.h"
|
||||||
|
|||||||
4
glfw/x11_window.c
vendored
4
glfw/x11_window.c
vendored
@ -2598,13 +2598,13 @@ void _glfwPlatformSetWindowMousePassthrough(_GLFWwindow* window, bool enabled)
|
|||||||
{
|
{
|
||||||
Region region = XCreateRegion();
|
Region region = XCreateRegion();
|
||||||
XShapeCombineRegion(_glfw.x11.display, window->x11.handle,
|
XShapeCombineRegion(_glfw.x11.display, window->x11.handle,
|
||||||
2/*ShapeInput*/, 0, 0, region, 0/*ShapeSet*/);
|
ShapeInput, 0, 0, region, ShapeSet);
|
||||||
XDestroyRegion(region);
|
XDestroyRegion(region);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
XShapeCombineMask(_glfw.x11.display, window->x11.handle,
|
XShapeCombineMask(_glfw.x11.display, window->x11.handle,
|
||||||
2/*ShapeInput*/, 0, 0, None, 0/*ShapeSet*/);
|
ShapeInput, 0, 0, None, ShapeSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
window->mousePassthrough = enabled;
|
window->mousePassthrough = enabled;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user