cursor-shape-v1: bump to version 2

This commit is contained in:
Kirill Primak 2024-10-23 14:51:29 +03:00
parent aaeffe9769
commit af43d3b9e7
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
wayland_protos = dependency('wayland-protocols', wayland_protos = dependency('wayland-protocols',
version: '>=1.41', version: '>=1.43',
fallback: 'wayland-protocols', fallback: 'wayland-protocols',
default_options: ['tests=false'], default_options: ['tests=false'],
) )

View file

@ -7,7 +7,7 @@
#include <wlr/types/wlr_tablet_tool.h> #include <wlr/types/wlr_tablet_tool.h>
#include "types/wlr_tablet_v2.h" #include "types/wlr_tablet_v2.h"
#define CURSOR_SHAPE_MANAGER_V1_VERSION 1 #define CURSOR_SHAPE_MANAGER_V1_VERSION 2
struct wlr_cursor_shape_device_v1 { struct wlr_cursor_shape_device_v1 {
struct wl_resource *resource; struct wl_resource *resource;
@ -257,6 +257,8 @@ static const char *const shape_names[] = {
[WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ALL_SCROLL] = "all-scroll", [WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ALL_SCROLL] = "all-scroll",
[WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ZOOM_IN] = "zoom-in", [WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ZOOM_IN] = "zoom-in",
[WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ZOOM_OUT] = "zoom-out", [WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ZOOM_OUT] = "zoom-out",
[WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_DND_ASK] = "dnd-ask",
[WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_ALL_RESIZE] = "all-resize",
}; };
const char *wlr_cursor_shape_v1_name(enum wp_cursor_shape_device_v1_shape shape) { const char *wlr_cursor_shape_v1_name(enum wp_cursor_shape_device_v1_shape shape) {