aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/wayland/tablet_v2.c6
-rw-r--r--types/tablet_v2/wlr_tablet_v2_tool.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/backend/wayland/tablet_v2.c b/backend/wayland/tablet_v2.c
index 77d737c5..9801b298 100644
--- a/backend/wayland/tablet_v2.c
+++ b/backend/wayland/tablet_v2.c
@@ -481,8 +481,10 @@ static enum wlr_tablet_tool_type tablet_type_to_wlr_type(enum zwp_tablet_tool_v2
return WLR_TABLET_TOOL_TYPE_MOUSE;
case ZWP_TABLET_TOOL_V2_TYPE_LENS:
return WLR_TABLET_TOOL_TYPE_LENS;
- default:
- break;
+ case ZWP_TABLET_TOOL_V2_TYPE_FINGER:
+ // unused, see:
+ // https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/18
+ abort();
}
abort(); // unreachable
}
diff --git a/types/tablet_v2/wlr_tablet_v2_tool.c b/types/tablet_v2/wlr_tablet_v2_tool.c
index f9b4b458..041139b5 100644
--- a/types/tablet_v2/wlr_tablet_v2_tool.c
+++ b/types/tablet_v2/wlr_tablet_v2_tool.c
@@ -73,10 +73,12 @@ static enum zwp_tablet_tool_v2_type tablet_type_from_wlr_type(
return ZWP_TABLET_TOOL_V2_TYPE_MOUSE;
case WLR_TABLET_TOOL_TYPE_LENS:
return ZWP_TABLET_TOOL_V2_TYPE_LENS;
- default:
- /* We skip these devices earlier on */
- abort(); // unreachable
+ case WLR_TABLET_TOOL_TYPE_TOTEM:
+ // missing, see:
+ // https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/19
+ abort();
}
+ abort(); // unreachable
}
void destroy_tablet_tool_v2(struct wl_resource *resource) {