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