Merge pull request #118 from martinetd/delay_handle_keyboard_cb
example compositor: handle keyboard after we're done with init
This commit is contained in:
commit
9f6c8e6288
|
@ -143,7 +143,6 @@ int main() {
|
||||||
struct compositor_state compositor = { 0,
|
struct compositor_state compositor = { 0,
|
||||||
.data = &state,
|
.data = &state,
|
||||||
.output_frame_cb = handle_output_frame,
|
.output_frame_cb = handle_output_frame,
|
||||||
.keyboard_key_cb = handle_keyboard_key
|
|
||||||
};
|
};
|
||||||
compositor_init(&compositor);
|
compositor_init(&compositor);
|
||||||
|
|
||||||
|
@ -178,6 +177,8 @@ int main() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compositor.keyboard_key_cb = handle_keyboard_key;
|
||||||
|
|
||||||
wl_display_run(compositor.display);
|
wl_display_run(compositor.display);
|
||||||
|
|
||||||
close(state.keymap_fd);
|
close(state.keymap_fd);
|
||||||
|
|
Loading…
Reference in New Issue