diff options
author | Simon Ser <contact@emersion.fr> | 2020-05-28 12:54:17 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-28 15:13:05 +0200 |
commit | 1a23c1425ff1ee29e3704f6c0ac940b274061cca (patch) | |
tree | b94e7a684e407912d89909ab98966bfd275fb419 /backend | |
parent | 5e0ef70cc085666d0939aefdf403664c5cd268e5 (diff) |
Add comments for missing tablet tool entries
And stop using default cases, so that we know which parts of the code
need an update when adding a new enum entry.
Closes: https://github.com/swaywm/wlroots/issues/2208
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/tablet_v2.c | 6 |
1 files changed, 4 insertions, 2 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 } |