Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

unlink wlr_device from wlr_session before calling libseat #3219

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,11 @@ struct wlr_device *wlr_session_open_file(struct wlr_session *session,

void wlr_session_close_file(struct wlr_session *session,
struct wlr_device *dev) {
wl_list_remove(&dev->link);
if (libseat_close_device(session->seat_handle, dev->device_id) == -1) {
wlr_log_errno(WLR_ERROR, "Failed to close device %d", dev->device_id);
}
close(dev->fd);
wl_list_remove(&dev->link);
free(dev);
}

Expand Down