diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2026-01-06 16:54:35 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2026-01-06 16:54:35 +0100 |
| commit | 05f75a3ec90dce83e1e651441e2a8357ab6f9d48 (patch) | |
| tree | 076dfe6e1a36f415bbfe417359f90d554ca7d2de /completions | |
| parent | cf4d0d51af62bcb607829d96db625bfb96ad4708 (diff) | |
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
Diffstat (limited to 'completions')
0 files changed, 0 insertions, 0 deletions
