aboutsummaryrefslogtreecommitdiff
path: root/examples/fullscreen-shell.c
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2020-02-08 19:09:41 +1300
committerSimon Ser <contact@emersion.fr>2020-02-08 11:38:44 +0100
commit2fea2fced8350ce52b3ea9c2d3f62797f7e61b56 (patch)
tree9a98e0c8c551fd07ed9ccc1335c6c9982a16ad24 /examples/fullscreen-shell.c
parent4b051aa926aa37b99f586b47caab1dcdfddfee65 (diff)
examples: Fix compositor-examples
Due to the way the wlr_output API was changed, these examples would never get a frame event to start the rendering loop. We now commit the outputs to start it.
Diffstat (limited to 'examples/fullscreen-shell.c')
-rw-r--r--examples/fullscreen-shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/fullscreen-shell.c b/examples/fullscreen-shell.c
index dbea9f04..cac8853b 100644
--- a/examples/fullscreen-shell.c
+++ b/examples/fullscreen-shell.c
@@ -163,6 +163,8 @@ static void server_handle_new_output(struct wl_listener *listener, void *data) {
wlr_output_layout_add_auto(server->output_layout, wlr_output);
wlr_output_create_global(wlr_output);
+
+ wlr_output_commit(wlr_output);
}
static void server_handle_present_surface(struct wl_listener *listener,