mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Register the viewporter
This commit is contained in:
5
glfw/wl_init.c
vendored
5
glfw/wl_init.c
vendored
@@ -729,6 +729,9 @@ static void registryHandleGlobal(void* data UNUSED,
|
|||||||
else if (is(wp_fractional_scale_manager_v1)) {
|
else if (is(wp_fractional_scale_manager_v1)) {
|
||||||
_glfw.wl.wp_fractional_scale_manager_v1 = wl_registry_bind(registry, name, &wp_fractional_scale_manager_v1_interface, 1);
|
_glfw.wl.wp_fractional_scale_manager_v1 = wl_registry_bind(registry, name, &wp_fractional_scale_manager_v1_interface, 1);
|
||||||
}
|
}
|
||||||
|
else if (is(wp_viewporter)) {
|
||||||
|
_glfw.wl.wp_viewporter = wl_registry_bind(registry, name, &wp_viewporter_interface, 1);
|
||||||
|
}
|
||||||
#undef is
|
#undef is
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -965,6 +968,8 @@ void _glfwPlatformTerminate(void)
|
|||||||
xdg_activation_v1_destroy(_glfw.wl.xdg_activation_v1);
|
xdg_activation_v1_destroy(_glfw.wl.xdg_activation_v1);
|
||||||
if (_glfw.wl.wp_cursor_shape_manager_v1)
|
if (_glfw.wl.wp_cursor_shape_manager_v1)
|
||||||
wp_cursor_shape_manager_v1_destroy(_glfw.wl.wp_cursor_shape_manager_v1);
|
wp_cursor_shape_manager_v1_destroy(_glfw.wl.wp_cursor_shape_manager_v1);
|
||||||
|
if (_glfw.wl.wp_viewporter)
|
||||||
|
wp_viewporter_destroy(_glfw.wl.wp_viewporter);
|
||||||
if (_glfw.wl.wp_fractional_scale_manager_v1)
|
if (_glfw.wl.wp_fractional_scale_manager_v1)
|
||||||
wp_fractional_scale_manager_v1_destroy(_glfw.wl.wp_fractional_scale_manager_v1);
|
wp_fractional_scale_manager_v1_destroy(_glfw.wl.wp_fractional_scale_manager_v1);
|
||||||
|
|
||||||
|
|||||||
2
glfw/wl_platform.h
vendored
2
glfw/wl_platform.h
vendored
@@ -61,6 +61,7 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR
|
|||||||
#include "wayland-xdg-activation-v1-client-protocol.h"
|
#include "wayland-xdg-activation-v1-client-protocol.h"
|
||||||
#include "wayland-cursor-shape-v1-client-protocol.h"
|
#include "wayland-cursor-shape-v1-client-protocol.h"
|
||||||
#include "wayland-fractional-scale-v1-client-protocol.h"
|
#include "wayland-fractional-scale-v1-client-protocol.h"
|
||||||
|
#include "wayland-viewporter-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)
|
||||||
@@ -290,6 +291,7 @@ typedef struct _GLFWlibraryWayland
|
|||||||
struct wp_cursor_shape_manager_v1* wp_cursor_shape_manager_v1;
|
struct wp_cursor_shape_manager_v1* wp_cursor_shape_manager_v1;
|
||||||
struct wp_cursor_shape_device_v1* wp_cursor_shape_device_v1;
|
struct wp_cursor_shape_device_v1* wp_cursor_shape_device_v1;
|
||||||
struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1;
|
struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1;
|
||||||
|
struct wp_viewporter *wp_viewporter;
|
||||||
|
|
||||||
int compositorVersion;
|
int compositorVersion;
|
||||||
int seatVersion;
|
int seatVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user