From 4a36ba4bdd094f676060a3721425abfed31828f4 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 19 Dec 2017 18:28:47 +0100 Subject: Destroy multi backend on display destroy --- include/backend/multi.h | 2 ++ include/wlr/backend/multi.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/backend/multi.h b/include/backend/multi.h index 82f85016..2798048d 100644 --- a/include/backend/multi.h +++ b/include/backend/multi.h @@ -11,6 +11,8 @@ struct wlr_multi_backend { struct wlr_session *session; struct wl_list backends; + + struct wl_listener display_destroy; }; #endif diff --git a/include/wlr/backend/multi.h b/include/wlr/backend/multi.h index 5559f2c1..e56b07b1 100644 --- a/include/wlr/backend/multi.h +++ b/include/wlr/backend/multi.h @@ -4,9 +4,10 @@ #include #include -struct wlr_backend *wlr_multi_backend_create(struct wlr_session *session); +struct wlr_backend *wlr_multi_backend_create(struct wl_display *display, + struct wlr_session *session); void wlr_multi_backend_add(struct wlr_backend *multi, - struct wlr_backend *backend); + struct wlr_backend *backend); bool wlr_backend_is_multi(struct wlr_backend *backend); -- cgit v1.2.3