Add xdg shell stubs

This commit is contained in:
Tony Crisci 2017-08-08 08:09:14 -04:00
parent 347707c962
commit c3f15ea284
6 changed files with 164 additions and 1 deletions

View file

@ -20,6 +20,7 @@ struct sample_state {
struct wlr_renderer *renderer;
struct wl_compositor_state compositor;
struct wl_shell_state shell;
struct xdg_shell_state xdg_shell;
};
void handle_output_frame(struct output_state *output, struct timespec *ts) {
@ -57,6 +58,7 @@ int main() {
wl_display_init_shm(compositor.display);
wl_compositor_init(compositor.display, &state.compositor, state.renderer);
wl_shell_init(compositor.display, &state.shell);
xdg_shell_init(compositor.display, &state.xdg_shell);
compositor_run(&compositor);
}