mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Bind the idle inhibit protocol even though it is currently unused
This commit is contained in:
@@ -82,6 +82,7 @@
|
|||||||
"staging/cursor-shape/cursor-shape-v1.xml",
|
"staging/cursor-shape/cursor-shape-v1.xml",
|
||||||
"staging/fractional-scale/fractional-scale-v1.xml",
|
"staging/fractional-scale/fractional-scale-v1.xml",
|
||||||
"staging/single-pixel-buffer/single-pixel-buffer-v1.xml",
|
"staging/single-pixel-buffer/single-pixel-buffer-v1.xml",
|
||||||
|
"unstable/idle-inhibit/idle-inhibit-unstable-v1.xml",
|
||||||
|
|
||||||
"kwin-blur-v1.xml",
|
"kwin-blur-v1.xml",
|
||||||
"wlr-layer-shell-unstable-v1.xml"
|
"wlr-layer-shell-unstable-v1.xml"
|
||||||
|
|||||||
6
glfw/wl_init.c
vendored
6
glfw/wl_init.c
vendored
@@ -599,6 +599,9 @@ static void registryHandleGlobal(void* data UNUSED,
|
|||||||
_glfw.wl.zwlr_layer_shell_v1 = wl_registry_bind(registry, name, &zwlr_layer_shell_v1_interface, version);
|
_glfw.wl.zwlr_layer_shell_v1 = wl_registry_bind(registry, name, &zwlr_layer_shell_v1_interface, version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (is(zwp_idle_inhibit_manager_v1)) {
|
||||||
|
_glfw.wl.idle_inhibit_manager = wl_registry_bind(registry, name, &zwp_idle_inhibit_manager_v1_interface, 1);
|
||||||
|
}
|
||||||
#undef is
|
#undef is
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -679,6 +682,7 @@ get_compositor_missing_capabilities(void) {
|
|||||||
C(blur, org_kde_kwin_blur_manager); C(server_side_decorations, decorationManager);
|
C(blur, org_kde_kwin_blur_manager); C(server_side_decorations, decorationManager);
|
||||||
C(cursor_shape, wp_cursor_shape_manager_v1); C(layer_shell, zwlr_layer_shell_v1);
|
C(cursor_shape, wp_cursor_shape_manager_v1); C(layer_shell, zwlr_layer_shell_v1);
|
||||||
C(single_pixel_buffer, wp_single_pixel_buffer_manager_v1); C(preferred_scale, has_preferred_buffer_scale);
|
C(single_pixel_buffer, wp_single_pixel_buffer_manager_v1); C(preferred_scale, has_preferred_buffer_scale);
|
||||||
|
C(idle_inhibit, idle_inhibit_manager);
|
||||||
#undef C
|
#undef C
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
@@ -861,6 +865,8 @@ void _glfwPlatformTerminate(void)
|
|||||||
org_kde_kwin_blur_manager_destroy(_glfw.wl.org_kde_kwin_blur_manager);
|
org_kde_kwin_blur_manager_destroy(_glfw.wl.org_kde_kwin_blur_manager);
|
||||||
if (_glfw.wl.zwlr_layer_shell_v1)
|
if (_glfw.wl.zwlr_layer_shell_v1)
|
||||||
zwlr_layer_shell_v1_destroy(_glfw.wl.zwlr_layer_shell_v1);
|
zwlr_layer_shell_v1_destroy(_glfw.wl.zwlr_layer_shell_v1);
|
||||||
|
if (_glfw.wl.idle_inhibit_manager)
|
||||||
|
zwp_idle_inhibit_manager_v1_destroy(_glfw.wl.idle_inhibit_manager);
|
||||||
|
|
||||||
if (_glfw.wl.registry)
|
if (_glfw.wl.registry)
|
||||||
wl_registry_destroy(_glfw.wl.registry);
|
wl_registry_destroy(_glfw.wl.registry);
|
||||||
|
|||||||
2
glfw/wl_platform.h
vendored
2
glfw/wl_platform.h
vendored
@@ -65,6 +65,7 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR
|
|||||||
#include "wayland-kwin-blur-v1-client-protocol.h"
|
#include "wayland-kwin-blur-v1-client-protocol.h"
|
||||||
#include "wayland-wlr-layer-shell-unstable-v1-client-protocol.h"
|
#include "wayland-wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||||
#include "wayland-single-pixel-buffer-v1-client-protocol.h"
|
#include "wayland-single-pixel-buffer-v1-client-protocol.h"
|
||||||
|
#include "wayland-idle-inhibit-unstable-v1-client-protocol.h"
|
||||||
|
|
||||||
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
|
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
|
||||||
#define _glfw_dlclose(handle) dlclose(handle)
|
#define _glfw_dlclose(handle) dlclose(handle)
|
||||||
@@ -338,6 +339,7 @@ typedef struct _GLFWlibraryWayland
|
|||||||
struct org_kde_kwin_blur_manager *org_kde_kwin_blur_manager;
|
struct org_kde_kwin_blur_manager *org_kde_kwin_blur_manager;
|
||||||
struct zwlr_layer_shell_v1* zwlr_layer_shell_v1; uint32_t zwlr_layer_shell_v1_version;
|
struct zwlr_layer_shell_v1* zwlr_layer_shell_v1; uint32_t zwlr_layer_shell_v1_version;
|
||||||
struct wp_single_pixel_buffer_manager_v1 *wp_single_pixel_buffer_manager_v1;
|
struct wp_single_pixel_buffer_manager_v1 *wp_single_pixel_buffer_manager_v1;
|
||||||
|
struct zwp_idle_inhibit_manager_v1* idle_inhibit_manager;
|
||||||
|
|
||||||
int compositorVersion;
|
int compositorVersion;
|
||||||
int seatVersion;
|
int seatVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user