From 3432ab2ba7d7c65d39c766f902ac915b60af52fd Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 18 Apr 2021 18:20:01 +0200 Subject: backend/session: Close remaining devices on destroy --- backend/session/session.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/session') 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); } -- cgit v1.2.3