libinput_suspend() already causes the fds to be closed, devices and seats to
be removed, etc. Call it before libinput_destroy() to reduce the
backend-specific code.
No real functional change, the udev backend already did this anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
if (libinput == NULL)
return;
+ libinput_suspend(libinput);
+
libinput->interface_backend->destroy(libinput);
while ((event = libinput_get_event(libinput)))
if (input == NULL)
return;
- udev_input_disable(input);
udev_unref(udev_input->udev);
free(udev_input->seat_id);
}