1
1
mirror of https://github.com/swaywm/sway synced 2026-01-19 10:01:36 +01:00
sway/sway/input
Rex Fernando 3c0588a44f sway/input/cursor: fix crash on first stylus tap after reboot via null check
handle_tool_tip() previously used event->tool->data without checking
for NULL. When launching sway for the first time after a reboot, and
then tapping with a USI 2.0 stylus, the tool tip event is fired before
the tool proximity event. As event->tool is initialized during the tool
proximity handler handle_tool_proximity(), this was causing a crash.

The fix adds a NULL check before accessing the fields of
event->tool->data. In case of a NULL, a log message is emitted
indicating that the tool tip event fired before proximity. This logic is
identical to the logic in handle_tool_axis().

Fixes issue #8907
2026-01-08 18:49:51 +01:00
..
cursor.c sway/input/cursor: fix crash on first stylus tap after reboot via null check 2026-01-08 18:49:51 +01:00
input-manager.c input/input-manager: remove event listeners on fini 2025-04-13 23:40:56 +02:00
keyboard.c Remove trailing spaces 2025-06-05 18:15:56 +02:00
libinput.c Revert drag_lock default to disabled 2025-07-29 09:41:19 +02:00
seat.c sway/input/seat: chase wlroots breaking change 2026-01-05 16:30:20 +01:00
seatop_default.c Add cursor->hidden check to handle_rebase 2025-08-03 15:01:21 +02:00
seatop_down.c input/seatop_down: Update decorations for touchscreen inputs 2025-05-06 11:22:41 +02:00
seatop_move_floating.c Convert to new pointer enums 2024-02-28 14:28:11 -05:00
seatop_move_tiling.c Convert to new pointer enums 2024-02-28 14:28:11 -05:00
seatop_resize_floating.c Convert to new pointer enums 2024-02-28 14:28:11 -05:00
seatop_resize_tiling.c tiling_resize: fix use-after-free on view unmap during resize 2025-12-19 14:05:18 +01:00
switch.c Drop server.h include from input/input-manager.h 2024-05-27 09:28:43 -04:00
tablet.c Chase wlroots!2434 2024-07-14 23:19:19 +02:00
text_input.c input/text_input: stop using listener data 2025-09-15 07:41:51 +02:00