window: Use xzalloc() instead of failing to add input device

This commit is contained in:
Kristian Høgsberg 2013-08-15 14:17:13 -07:00
parent 1a5f0c34ff
commit adcd54bc3c
1 changed files with 1 additions and 4 deletions

View File

@ -4920,10 +4920,7 @@ display_add_input(struct display *d, uint32_t id)
{
struct input *input;
input = zalloc(sizeof *input);
if (input == NULL)
return;
input = xzalloc(sizeof *input);
input->display = d;
input->seat = wl_registry_bind(d->registry, id, &wl_seat_interface, 1);
input->pointer_focus = NULL;