diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-20 07:59:03 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-23 22:03:49 +0200 |
commit | eb5b9cc6daa39f6e1bcafae074f832f07b5d0a19 (patch) | |
tree | 79aad9559f8d3ef23bac535460a83321826481ad /examples/compositor.c | |
parent | fa0e1015c6f06f08fe368f89af511ef646f0bc99 (diff) |
xwayland: move & split internal header file
Diffstat (limited to 'examples/compositor.c')
-rw-r--r-- | examples/compositor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/compositor.c b/examples/compositor.c index e143099c..e0bafe60 100644 --- a/examples/compositor.c +++ b/examples/compositor.c @@ -36,7 +36,7 @@ struct sample_state { struct wlr_data_device_manager *data_device_manager; struct wl_resource *focus; struct wl_listener keyboard_bound; - struct wlr_xwayland wlr_xwayland; + struct wlr_xwayland *wlr_xwayland; int keymap_fd; size_t keymap_size; uint32_t serial; @@ -178,13 +178,13 @@ int main() { free(keymap); break; } - wlr_xwayland_init(&state.wlr_xwayland, compositor.display, state.wlr_compositor); + state.wlr_xwayland = wlr_xwayland_create(compositor.display, state.wlr_compositor); compositor.keyboard_key_cb = handle_keyboard_key; wl_display_run(compositor.display); - wlr_xwayland_finish(&state.wlr_xwayland); + wlr_xwayland_destroy(state.wlr_xwayland); close(state.keymap_fd); wlr_seat_destroy(state.wl_seat); wlr_data_device_manager_destroy(state.data_device_manager); |