Add support for graphics tablets and styluses via zwp_tablet_v2 - #200
Open
caio-hat wants to merge 1 commit into
Open
Add support for graphics tablets and styluses via zwp_tablet_v2#200caio-hat wants to merge 1 commit into
caio-hat wants to merge 1 commit into
Conversation
Implements zwp_tablet_manager_v2, zwp_tablet_seat_v2 and zwp_tablet_tool_v2 listeners to allow selecting screen regions directly using an active pen or graphics tablet (Wacom AES/EMR, MPP, etc.). Fixes: emersion#189
caio-hat
force-pushed
the
support-tablet-stylus
branch
from
August 31, 2026 23:25
553bbab to
fb6529a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #189
Overview
This PR implements native support for graphics tablets and active styluses (such as Wacom AES/EMR, MPP, etc.) in
slurpby binding and implementing the Waylandzwp_tablet_manager_v2protocol.Details
zwp_tablet_manager_v2in the registry handler and associates eachwl_seatwith azwp_tablet_seat_v2.zwp_tablet_tool_v2listeners (proximity_in,proximity_out,down,up,motion,button).cursor-shape-v1for tablet tools (WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_CROSSHAIR) with classic cursor image fallback.Testing
Tested on hardware with an active stylus (Dell Active Pen PN579X / Wacom AES digitizer) on Hyprland (Wayland). Selecting screen regions directly by dragging the stylus tip works as expected.