diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-11 23:39:17 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-11 23:39:17 +0300 |
| commit | 608b49052178ea74f593c925cdeedf352aa1c357 (patch) | |
| tree | f6f5d886c2af5f0d34fbcfd4a33cd5209c68ee9e /src/wayland | |
| parent | 5bbcd2c036dd19d3293d9abc4d44014a5108a5ed (diff) | |
feat: cross-platform pen pressure, tilt, and stylus handling
- Hook up Cocoa tablet, stylus, and Force Touch pressure/tilt to push_pointer
- Ensure Wayland tablet tool pressure resets cleanly on tool up
- Visualize pressure-sensitive brush scaling and telemetry in simple_window
Diffstat (limited to 'src/wayland')
| -rw-r--r-- | src/wayland/pointer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland/pointer.c b/src/wayland/pointer.c index 006eadd..5f97370 100644 --- a/src/wayland/pointer.c +++ b/src/wayland/pointer.c @@ -785,6 +785,7 @@ static void tablet_tool_up(void *data, struct zwp_tablet_tool_v2 *tool) struct seat *s = ((struct tablet_tool *)data)->seat; struct yasl_surface *w = s->tablet_focus; if (!w) return; + s->pen.pressure = 0; press_queue_push(&s->tool_presses, w, s->tool_pos, 0, true); } |
