aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Luofan Chen <clfbbn@gmail.com>2024-03-01 11:43:14 +0800
committerLibravatar Simon Ser <contact@emersion.fr>2024-03-01 09:53:43 +0100
commit2058209a130f5051b59d8ebb24196409695deaaf (patch)
tree867fea97c4b4d78a61da441192286c7563faf3fa /sway/input/cursor.c
parentipc: add `scratchpad_state` property to GET_TREE (diff)
downloadsway-2058209a130f5051b59d8ebb24196409695deaaf.tar.gz
sway-2058209a130f5051b59d8ebb24196409695deaaf.tar.zst
sway-2058209a130f5051b59d8ebb24196409695deaaf.zip
input: Rename WLR_INPUT_DEVICE_TABLET_TOOL to WLR_INPUT_DEVICE_TABLET
wlroots has changed the naming, causing the following build errors when building: error: ‘WLR_INPUT_DEVICE_TABLET_TOOL’ undeclared
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 7d66a89d..3d04826c 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -243,7 +243,7 @@ static enum sway_input_idle_source idle_source_from_device(
243 return IDLE_SOURCE_POINTER; 243 return IDLE_SOURCE_POINTER;
244 case WLR_INPUT_DEVICE_TOUCH: 244 case WLR_INPUT_DEVICE_TOUCH:
245 return IDLE_SOURCE_TOUCH; 245 return IDLE_SOURCE_TOUCH;
246 case WLR_INPUT_DEVICE_TABLET_TOOL: 246 case WLR_INPUT_DEVICE_TABLET:
247 return IDLE_SOURCE_TABLET_TOOL; 247 return IDLE_SOURCE_TABLET_TOOL;
248 case WLR_INPUT_DEVICE_TABLET_PAD: 248 case WLR_INPUT_DEVICE_TABLET_PAD:
249 return IDLE_SOURCE_TABLET_PAD; 249 return IDLE_SOURCE_TABLET_PAD;
@@ -518,7 +518,7 @@ static void apply_mapping_from_region(struct wlr_input_device *device,
518 double x1 = region->x1, x2 = region->x2; 518 double x1 = region->x1, x2 = region->x2;
519 double y1 = region->y1, y2 = region->y2; 519 double y1 = region->y1, y2 = region->y2;
520 520
521 if (region->mm && device->type == WLR_INPUT_DEVICE_TABLET_TOOL) { 521 if (region->mm && device->type == WLR_INPUT_DEVICE_TABLET) {
522 struct wlr_tablet *tablet = wlr_tablet_from_input_device(device); 522 struct wlr_tablet *tablet = wlr_tablet_from_input_device(device);
523 if (tablet->width_mm == 0 || tablet->height_mm == 0) { 523 if (tablet->width_mm == 0 || tablet->height_mm == 0) {
524 return; 524 return;