mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
@@ -48,6 +48,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>
|
||||
|
||||
typedef XClassHint* (* PFN_XAllocClassHint)(void);
|
||||
typedef XSizeHints* (* PFN_XAllocSizeHints)(void);
|
||||
typedef XWMHints* (* PFN_XAllocWMHints)(void);
|
||||
|
||||
+2
-2
@@ -2714,13 +2714,13 @@ void _glfwPlatformSetWindowMousePassthrough(_GLFWwindow* window, GLFWbool enable
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user