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 committed by Sqooky
parent 296dd776b7
commit c29a9869da
No known key found for this signature in database
GPG key ID: 6D5262FD73505E49

View file

@ -2020,7 +2020,7 @@ bool handle_buttonpress(struct wlr_pointer_button_event *event) {
handlecursoractivity();
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;
}