diff options
-rw-r--r-- | backend/session/session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/session/session.c b/backend/session/session.c index 314f931e..8ca858c8 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -265,6 +265,11 @@ void wlr_session_destroy(struct wlr_session *session) { udev_monitor_unref(session->mon); udev_unref(session->udev); + struct wlr_device *dev, *tmp_dev; + wl_list_for_each_safe(dev, tmp_dev, &session->devices, link) { + wlr_session_close_file(session, dev); + } + libseat_session_finish(session); free(session); } |