mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-18 07:25:20 +02:00
Wayland compositors give a pen only to clients that bind zwp_tablet_v2, which winit 0.30 doesn't, so on Wayland the pen did nothing in the window. With a pen attached (BTN_TOOL_PEN in /proc/bus/input/devices), $DISPLAY set and the X11 libraries installed, the window now opens through Xwayland, where the X11 reader gets pressure, tilt and the eraser. PHOTOCRAFT_NATIVE_WAYLAND=1 keeps native Wayland. macOS: the AppKit event monitor was installed before winit created the shared NSApplication; it now goes in from eframe's app creation. The pen's button-up (pressure 0) no longer zeroes the pressure of the stroke's last moves, which reach the UI in the same frame. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>