mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-10 13:04:03 +03:00
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
|
||||
#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
4
glfw/x11_window.c
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user