aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-19 12:41:48 -0500
committerGitHub <noreply@github.com>2017-12-19 12:41:48 -0500
commit36d875136354b0f0438b1fe89d5ea897b113bd24 (patch)
tree7a84f135d7b049c8cca70714959b7c55f147989e /include
parentfc78e269a5623f9f2ab18403f459befa9537334e (diff)
parent4a36ba4bdd094f676060a3721425abfed31828f4 (diff)
Merge pull request #504 from emersion/multi-display-destroy
Destroy multi backend on display destroy
Diffstat (limited to 'include')
-rw-r--r--include/backend/multi.h2
-rw-r--r--include/wlr/backend/multi.h5
2 files changed, 5 insertions, 2 deletions
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 <wlr/backend.h>
#include <wlr/backend/session.h>
-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);