diff options
Diffstat (limited to 'examples/fullscreen-shell.c')
-rw-r--r-- | examples/fullscreen-shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/fullscreen-shell.c b/examples/fullscreen-shell.c index aa55adb8..70b7f676 100644 --- a/examples/fullscreen-shell.c +++ b/examples/fullscreen-shell.c @@ -154,8 +154,7 @@ static void server_handle_new_output(struct wl_listener *listener, void *data) { wlr_output_init_render(wlr_output, server->allocator, server->renderer); - struct fullscreen_output *output = - calloc(1, sizeof(struct fullscreen_output)); + struct fullscreen_output *output = calloc(1, sizeof(*output)); output->wlr_output = wlr_output; output->server = server; output->frame.notify = output_handle_frame; |