mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-22 01:40:43 -05:00
backend/x11: handle touchpoint allocation failure
This commit is contained in:
parent
20b99ed854
commit
db69dcf767
1 changed files with 4 additions and 0 deletions
|
|
@ -233,6 +233,10 @@ void handle_x11_xinput_event(struct wlr_x11_backend *x11,
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_x11_touchpoint *touchpoint = calloc(1, sizeof(*touchpoint));
|
struct wlr_x11_touchpoint *touchpoint = calloc(1, sizeof(*touchpoint));
|
||||||
|
if (!touchpoint) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
touchpoint->x11_id = ev->detail;
|
touchpoint->x11_id = ev->detail;
|
||||||
touchpoint->wayland_id = id;
|
touchpoint->wayland_id = id;
|
||||||
wl_list_init(&touchpoint->link);
|
wl_list_init(&touchpoint->link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue