From 4519b3abeebc4703af4a075aa78acd9998553507 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Dec 2023 22:56:01 +0530 Subject: [PATCH] Enable cursor shape on Wayland Cant replicate the hyprland crash, so am not going to bother about it. Fixes #6914 --- docs/changelog.rst | 4 ++++ glfw/wl_init.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 5cd601c25..3d86107c2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -69,6 +69,10 @@ Detailed list of changes - kitty keyboard protocol: Specify the behavior of the modifier bits during modifier key events (:iss:`6913`) +- Wayland: Enable support for the new cursor-shape protocol so that the mouse + cursor is always rendered at the correct size in compositors that support + this protocol (:iss:`6914`) + 0.31.0 [2023-11-08] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 7b9aabf00..1b91fd605 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -723,7 +723,7 @@ static void registryHandleGlobal(void* data UNUSED, else if (is(xdg_activation_v1)) { _glfw.wl.xdg_activation_v1 = wl_registry_bind(registry, name, &xdg_activation_v1_interface, 1); } - else if (false && is(wp_cursor_shape_manager_v1)) { + else if (is(wp_cursor_shape_manager_v1)) { _glfw.wl.wp_cursor_shape_manager_v1 = wl_registry_bind(registry, name, &wp_cursor_shape_manager_v1_interface, 1); } #undef is