mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04:00
fix: avoid dereferencing a NULL pointer in buttonpress for tablet events
This commit is contained in:
parent
296dd776b7
commit
c29a9869da
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue