aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-23 14:17:39 +0100
committerKirill Primak <vyivel@eclair.cafe>2024-01-25 15:05:36 +0000
commitd1b39b58432c471c16e09103fd2c7850e3c41950 (patch)
tree1d825cbf9ba005a7061eb40e6ff55dfb70ac30cd /examples
parentf27808b8d98d5b9907a347cd9f01bb7bef3218b9 (diff)
backend: take wl_event_loop instead of wl_display in wlr_backend_autocreate()
Diffstat (limited to 'examples')
-rw-r--r--examples/cairo-buffer.c2
-rw-r--r--examples/fullscreen-shell.c2
-rw-r--r--examples/output-layers.c2
-rw-r--r--examples/output-layout.c2
-rw-r--r--examples/pointer.c2
-rw-r--r--examples/rotation.c2
-rw-r--r--examples/scene-graph.c2
-rw-r--r--examples/simple.c2
-rw-r--r--examples/tablet.c2
-rw-r--r--examples/touch.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/examples/cairo-buffer.c b/examples/cairo-buffer.c
index d92a2f13..d4619878 100644
--- a/examples/cairo-buffer.c
+++ b/examples/cairo-buffer.c
@@ -125,7 +125,7 @@ int main(void) {
struct server server = {0};
server.display = wl_display_create();
- server.backend = wlr_backend_autocreate(server.display, NULL);
+ server.backend = wlr_backend_autocreate(wl_display_get_event_loop(server.display), NULL);
server.scene = wlr_scene_create();
server.renderer = wlr_renderer_autocreate(server.backend);
diff --git a/examples/fullscreen-shell.c b/examples/fullscreen-shell.c
index 9fa24c66..46923d9f 100644
--- a/examples/fullscreen-shell.c
+++ b/examples/fullscreen-shell.c
@@ -212,7 +212,7 @@ int main(int argc, char *argv[]) {
struct fullscreen_server server = {0};
server.wl_display = wl_display_create();
- server.backend = wlr_backend_autocreate(server.wl_display, NULL);
+ server.backend = wlr_backend_autocreate(wl_display_get_event_loop(server.wl_display), NULL);
server.renderer = wlr_renderer_autocreate(server.backend);
wlr_renderer_init_wl_display(server.renderer, server.wl_display);
server.allocator = wlr_allocator_autocreate(server.backend,
diff --git a/examples/output-layers.c b/examples/output-layers.c
index c8edc00f..1b34d584 100644
--- a/examples/output-layers.c
+++ b/examples/output-layers.c
@@ -286,7 +286,7 @@ int main(int argc, char *argv[]) {
struct server server = {0};
server.wl_display = wl_display_create();
- server.backend = wlr_backend_autocreate(server.wl_display, NULL);
+ server.backend = wlr_backend_autocreate(wl_display_get_event_loop(server.wl_display), NULL);
server.renderer = wlr_renderer_autocreate(server.backend);
wlr_renderer_init_wl_shm(server.renderer, server.wl_display);
diff --git a/examples/output-layout.c b/examples/output-layout.c
index 07ae26bc..4400685c 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -275,7 +275,7 @@ int main(int argc, char *argv[]) {
state.layout = wlr_output_layout_create(display);
clock_gettime(CLOCK_MONOTONIC, &state.ts_last);
- struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}
diff --git a/examples/pointer.c b/examples/pointer.c
index 808c7b95..7d1f4e4b 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -341,7 +341,7 @@ int main(int argc, char *argv[]) {
.display = display
};
- struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}
diff --git a/examples/rotation.c b/examples/rotation.c
index e610de33..7ee8dc78 100644
--- a/examples/rotation.c
+++ b/examples/rotation.c
@@ -250,7 +250,7 @@ int main(int argc, char *argv[]) {
};
wl_list_init(&state.outputs);
- struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}
diff --git a/examples/scene-graph.c b/examples/scene-graph.c
index be1070e9..cbc09136 100644
--- a/examples/scene-graph.c
+++ b/examples/scene-graph.c
@@ -160,7 +160,7 @@ int main(int argc, char *argv[]) {
struct server server = {0};
server.surface_offset = 0;
server.display = wl_display_create();
- server.backend = wlr_backend_autocreate(server.display, NULL);
+ server.backend = wlr_backend_autocreate(wl_display_get_event_loop(server.display), NULL);
server.scene = wlr_scene_create();
server.renderer = wlr_renderer_autocreate(server.backend);
diff --git a/examples/simple.c b/examples/simple.c
index 8fe49460..1a018829 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -181,7 +181,7 @@ int main(void) {
.last_frame = { 0 },
.display = display
};
- struct wlr_backend *backend = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *backend = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!backend) {
exit(1);
}
diff --git a/examples/tablet.c b/examples/tablet.c
index c977d7fd..c97cafe4 100644
--- a/examples/tablet.c
+++ b/examples/tablet.c
@@ -385,7 +385,7 @@ int main(int argc, char *argv[]) {
};
wl_list_init(&state.tablet_pads);
wl_list_init(&state.tablet_tools);
- struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}
diff --git a/examples/touch.c b/examples/touch.c
index 439a5720..f0aca30d 100644
--- a/examples/touch.c
+++ b/examples/touch.c
@@ -274,7 +274,7 @@ int main(int argc, char *argv[]) {
wl_list_init(&state.touch_points);
wl_list_init(&state.touch);
- struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
+ struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}