fix: avoid dereferencing a NULL pointer in buttonpress for tablet events

This commit is contained in:
werapi 2026-01-09 11:47:24 +01:00
parent 3c06e19fcd
commit 01f93be87e

View file

@ -1792,7 +1792,7 @@ bool handle_buttonpress(struct wlr_pointer_button_event *event) {
handlecursoractivity(); handlecursoractivity();
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat); wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
if (check_trackpad_disabled(event->pointer)) { if (event->pointer && check_trackpad_disabled(event->pointer)) {
return true; return true;
} }