From c9d5a0b2fb5686627344922138c3c603cae364bc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 20 Jun 2017 15:29:27 -0400 Subject: Clean up Wayland backend GL context and such --- example/simple.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example/simple.c') diff --git a/example/simple.c b/example/simple.c index 5a5a1300..f3a66db9 100644 --- a/example/simple.c +++ b/example/simple.c @@ -50,11 +50,11 @@ int main() { .color = { 1.0, 0.0, 0.0 }, .dec = 0, }; - struct compositor_state compositor; - + struct compositor_state compositor = { 0, + .data = &state, + .output_frame_cb = handle_output_frame, + .keyboard_key_cb = handle_keyboard_key, + }; compositor_init(&compositor); - compositor.output_frame_cb = handle_output_frame; - compositor.keyboard_key_cb = handle_keyboard_key; - compositor.data = &state; compositor_run(&compositor); } -- cgit v1.2.3