aboutsummaryrefslogtreecommitdiff
path: root/examples/output-layout.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-03 18:25:05 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-11-15 21:16:25 +0000
commit41b7acbab78597e2eb0724e415ed94b910d113c1 (patch)
tree42b73c81efad383d169002a875870a7828225f93 /examples/output-layout.c
parent265439600e2491a460253bdb59168f139cb08aea (diff)
backend: return wlr_session in wlr_backend_autocreate() call
Up until now, wlr_backend_autocreate() created the wlr_session and then stuffed it into struct wlr_multi_backend so that compositors can grab it later. This is an abuse of wlr_multi_backend and the wlr_backend API: wlr_backend_get_session() and wlr_multi_backend.session only exist to accomodate the needs of wlr_backend_autocreate(). What's more, the DRM and libinput backends don't implement wlr_backend_impl.get_session. Instead, return the struct wlr_session to the compositor in the wlr_backend_autocreate() call. wlr_backend_get_session() will be removed in the next commit.
Diffstat (limited to 'examples/output-layout.c')
-rw-r--r--examples/output-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index 97939953..8a40e83f 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -268,7 +268,7 @@ int main(int argc, char *argv[]) {
state.layout = wlr_output_layout_create();
clock_gettime(CLOCK_MONOTONIC, &state.ts_last);
- struct wlr_backend *wlr = wlr_backend_autocreate(display);
+ struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
if (!wlr) {
exit(1);
}