aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-20 07:59:03 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-23 22:03:49 +0200
commiteb5b9cc6daa39f6e1bcafae074f832f07b5d0a19 (patch)
tree79aad9559f8d3ef23bac535460a83321826481ad /examples
parentfa0e1015c6f06f08fe368f89af511ef646f0bc99 (diff)
xwayland: move & split internal header file
Diffstat (limited to 'examples')
-rw-r--r--examples/compositor.c6
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);