aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-09 17:30:51 -0400
committerGitHub <noreply@github.com>2017-08-09 17:30:51 -0400
commit3ce1341e3c0276ef20df5c7b89cc9ce260d05b9e (patch)
tree76b53d12dde6ec82f989a1a7bd72146058189374 /examples/compositor/main.c
parentdf378d32740495d33dc46e799a547adc9b9620e1 (diff)
parentbd2e9a7168dc530c03b7b45ecfdd5ce0aff0ddb8 (diff)
Merge pull request #43 from acrisci/feature/shell-surface-interface
shell surface interface
Diffstat (limited to 'examples/compositor/main.c')
-rw-r--r--examples/compositor/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/compositor/main.c b/examples/compositor/main.c
index 8e5fcc34..9d320c97 100644
--- a/examples/compositor/main.c
+++ b/examples/compositor/main.c
@@ -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,9 @@ 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);
+
+ xdg_shell_release(&state.xdg_shell);
}