Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright © 2010-2012 Intel Corporation |
| 3 | * Copyright © 2011-2012 Collabora, Ltd. |
| 4 | * Copyright © 2013 Raspberry Pi Foundation |
| 5 | * Copyright © 2016 Quentin "Sardem FF7" Glidic |
| 6 | * |
| 7 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 8 | * copy of this software and associated documentation files (the "Software"), |
| 9 | * to deal in the Software without restriction, including without limitation |
| 10 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 11 | * and/or sell copies of the Software, and to permit persons to whom the |
| 12 | * Software is furnished to do so, subject to the following conditions: |
| 13 | * |
| 14 | * The above copyright notice and this permission notice (including the next |
| 15 | * paragraph) shall be included in all copies or substantial portions of the |
| 16 | * Software. |
| 17 | * |
| 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 21 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 23 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 24 | * DEALINGS IN THE SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | #include "config.h" |
| 28 | |
| 29 | #include <assert.h> |
| 30 | |
| 31 | #include <wayland-server.h> |
| 32 | |
| 33 | #include "compositor.h" |
| 34 | #include "zalloc.h" |
| 35 | |
| 36 | #include "libweston-desktop.h" |
| 37 | #include "internal.h" |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 38 | #include "xwayland/xwayland-internal-interface.h" |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 39 | |
| 40 | enum weston_desktop_xwayland_surface_state { |
| 41 | NONE, |
| 42 | TOPLEVEL, |
| 43 | MAXIMIZED, |
| 44 | FULLSCREEN, |
| 45 | TRANSIENT, |
| 46 | XWAYLAND, |
| 47 | }; |
| 48 | |
| 49 | struct weston_desktop_xwayland { |
| 50 | struct weston_desktop *desktop; |
| 51 | struct weston_desktop_client *client; |
| 52 | struct weston_layer layer; |
| 53 | }; |
| 54 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 55 | struct weston_desktop_xwayland_surface { |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 56 | struct weston_desktop_xwayland *xwayland; |
| 57 | struct weston_desktop *desktop; |
| 58 | struct weston_desktop_surface *surface; |
| 59 | struct wl_listener resource_destroy_listener; |
| 60 | struct weston_view *view; |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 61 | const struct weston_xwayland_client_interface *client_interface; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 62 | struct weston_geometry next_geometry; |
| 63 | bool has_next_geometry; |
| 64 | bool added; |
| 65 | enum weston_desktop_xwayland_surface_state state; |
| 66 | }; |
| 67 | |
| 68 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 69 | weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surface *surface, |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 70 | enum weston_desktop_xwayland_surface_state state, |
| 71 | struct weston_desktop_surface *parent, |
| 72 | int32_t x, int32_t y) |
| 73 | { |
| 74 | bool to_add = (parent == NULL && state != XWAYLAND); |
| 75 | |
| 76 | assert(state != NONE); |
| 77 | |
Quentin Glidic | 6384edf | 2016-08-16 11:42:47 +0200 | [diff] [blame^] | 78 | if (to_add && surface->added) { |
| 79 | surface->state = state; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 80 | return; |
Quentin Glidic | 6384edf | 2016-08-16 11:42:47 +0200 | [diff] [blame^] | 81 | } |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 82 | |
| 83 | if (surface->state != state) { |
| 84 | if (surface->state == XWAYLAND) { |
Quentin Glidic | f01ecee | 2016-08-16 10:52:46 +0200 | [diff] [blame] | 85 | weston_desktop_surface_unlink_view(surface->view); |
Quentin Glidic | f6636a8 | 2016-08-16 10:55:02 +0200 | [diff] [blame] | 86 | weston_view_destroy(surface->view); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 87 | surface->view = NULL; |
| 88 | } |
| 89 | |
| 90 | if (to_add) { |
| 91 | weston_desktop_surface_unset_relative_to(surface->surface); |
| 92 | weston_desktop_api_surface_added(surface->desktop, |
| 93 | surface->surface); |
| 94 | } else if (surface->added) { |
| 95 | weston_desktop_api_surface_removed(surface->desktop, |
| 96 | surface->surface); |
| 97 | } |
| 98 | |
| 99 | if (state == XWAYLAND) { |
| 100 | surface->view = |
| 101 | weston_desktop_surface_create_view(surface->surface); |
| 102 | weston_layer_entry_insert(&surface->xwayland->layer.view_list, |
| 103 | &surface->view->layer_link); |
| 104 | weston_view_set_position(surface->view, x, y); |
| 105 | } |
| 106 | |
| 107 | surface->state = state; |
| 108 | surface->added = to_add; |
| 109 | } |
| 110 | |
| 111 | if (parent != NULL) |
| 112 | weston_desktop_surface_set_relative_to(surface->surface, parent, |
| 113 | x, y, false); |
| 114 | } |
| 115 | |
| 116 | static void |
| 117 | weston_desktop_xwayland_surface_committed(struct weston_desktop_surface *dsurface, |
Quentin Glidic | 003da88 | 2016-08-15 12:21:39 +0200 | [diff] [blame] | 118 | void *user_data, |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 119 | int32_t sx, int32_t sy) |
| 120 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 121 | struct weston_desktop_xwayland_surface *surface = user_data; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 122 | |
| 123 | if (surface->has_next_geometry) { |
| 124 | surface->has_next_geometry = false; |
| 125 | weston_desktop_surface_set_geometry(surface->surface, |
| 126 | surface->next_geometry); |
| 127 | } |
| 128 | |
| 129 | if (surface->added) |
| 130 | weston_desktop_api_committed(surface->desktop, surface->surface, |
| 131 | sx, sy); |
| 132 | } |
| 133 | |
| 134 | static void |
| 135 | weston_desktop_xwayland_surface_set_size(struct weston_desktop_surface *dsurface, |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 136 | void *user_data, |
| 137 | int32_t width, int32_t height) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 138 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 139 | struct weston_desktop_xwayland_surface *surface = user_data; |
| 140 | struct weston_surface *wsurface = |
| 141 | weston_desktop_surface_get_surface(surface->surface); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 142 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 143 | surface->client_interface->send_configure(wsurface, width, height); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | static void |
| 147 | weston_desktop_xwayland_surface_destroy(struct weston_desktop_surface *dsurface, |
| 148 | void *user_data) |
| 149 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 150 | struct weston_desktop_xwayland_surface *surface = user_data; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 151 | |
| 152 | wl_list_remove(&surface->resource_destroy_listener.link); |
| 153 | |
| 154 | weston_desktop_surface_unset_relative_to(surface->surface); |
Quentin Glidic | f6636a8 | 2016-08-16 10:55:02 +0200 | [diff] [blame] | 155 | if (surface->added) { |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 156 | weston_desktop_api_surface_removed(surface->desktop, |
| 157 | surface->surface); |
Quentin Glidic | f6636a8 | 2016-08-16 10:55:02 +0200 | [diff] [blame] | 158 | } else if (surface->state == XWAYLAND) { |
Quentin Glidic | f01ecee | 2016-08-16 10:52:46 +0200 | [diff] [blame] | 159 | weston_desktop_surface_unlink_view(surface->view); |
Quentin Glidic | f6636a8 | 2016-08-16 10:55:02 +0200 | [diff] [blame] | 160 | weston_view_destroy(surface->view); |
| 161 | } |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 162 | |
| 163 | free(surface); |
| 164 | } |
| 165 | |
| 166 | static bool |
| 167 | weston_desktop_xwayland_surface_get_maximized(struct weston_desktop_surface *dsurface, |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 168 | void *user_data) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 169 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 170 | struct weston_desktop_xwayland_surface *surface = user_data; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 171 | |
| 172 | return surface->state == MAXIMIZED; |
| 173 | } |
| 174 | |
| 175 | static bool |
| 176 | weston_desktop_xwayland_surface_get_fullscreen(struct weston_desktop_surface *dsurface, |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 177 | void *user_data) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 178 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 179 | struct weston_desktop_xwayland_surface *surface = user_data; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 180 | |
| 181 | return surface->state == FULLSCREEN; |
| 182 | } |
| 183 | |
| 184 | static const struct weston_desktop_surface_implementation weston_desktop_xwayland_surface_internal_implementation = { |
| 185 | .committed = weston_desktop_xwayland_surface_committed, |
| 186 | .set_size = weston_desktop_xwayland_surface_set_size, |
| 187 | |
| 188 | .get_maximized = weston_desktop_xwayland_surface_get_maximized, |
| 189 | .get_fullscreen = weston_desktop_xwayland_surface_get_fullscreen, |
| 190 | |
| 191 | .destroy = weston_desktop_xwayland_surface_destroy, |
| 192 | }; |
| 193 | |
| 194 | static void |
| 195 | weston_destop_xwayland_resource_destroyed(struct wl_listener *listener, |
| 196 | void *data) |
| 197 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 198 | struct weston_desktop_xwayland_surface *surface = |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 199 | wl_container_of(listener, surface, resource_destroy_listener); |
| 200 | |
| 201 | weston_desktop_surface_destroy(surface->surface); |
| 202 | } |
| 203 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 204 | static struct weston_desktop_xwayland_surface * |
| 205 | create_surface(struct weston_desktop_xwayland *xwayland, |
| 206 | struct weston_surface *wsurface, |
| 207 | const struct weston_xwayland_client_interface *client_interface) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 208 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 209 | struct weston_desktop_xwayland_surface *surface; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 210 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 211 | surface = zalloc(sizeof(struct weston_desktop_xwayland_surface)); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 212 | if (surface == NULL) |
| 213 | return NULL; |
| 214 | |
| 215 | surface->xwayland = xwayland; |
| 216 | surface->desktop = xwayland->desktop; |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 217 | surface->client_interface = client_interface; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 218 | |
| 219 | surface->surface = |
| 220 | weston_desktop_surface_create(surface->desktop, |
| 221 | xwayland->client, wsurface, |
| 222 | &weston_desktop_xwayland_surface_internal_implementation, |
| 223 | surface); |
| 224 | if (surface->surface == NULL) { |
| 225 | free(surface); |
| 226 | return NULL; |
| 227 | } |
| 228 | |
| 229 | surface->resource_destroy_listener.notify = |
| 230 | weston_destop_xwayland_resource_destroyed; |
| 231 | wl_resource_add_destroy_listener(wsurface->resource, |
| 232 | &surface->resource_destroy_listener); |
| 233 | |
| 234 | return surface; |
| 235 | } |
| 236 | |
| 237 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 238 | set_toplevel(struct weston_desktop_xwayland_surface *surface) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 239 | { |
| 240 | weston_desktop_xwayland_surface_change_state(surface, TOPLEVEL, NULL, |
| 241 | 0, 0); |
| 242 | } |
| 243 | |
| 244 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 245 | set_parent(struct weston_desktop_xwayland_surface *surface, |
| 246 | struct weston_surface *wparent) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 247 | { |
| 248 | struct weston_desktop_surface *parent; |
| 249 | |
| 250 | if (!weston_surface_is_desktop_surface(wparent)) |
| 251 | return; |
| 252 | |
| 253 | parent = weston_surface_get_desktop_surface(wparent); |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 254 | weston_desktop_api_set_parent(surface->desktop, surface->surface, parent); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 255 | } |
| 256 | |
| 257 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 258 | set_transient(struct weston_desktop_xwayland_surface *surface, |
| 259 | struct weston_surface *wparent, int x, int y) |
| 260 | { |
| 261 | struct weston_desktop_surface *parent; |
| 262 | |
| 263 | if (!weston_surface_is_desktop_surface(wparent)) |
| 264 | return; |
| 265 | |
| 266 | parent = weston_surface_get_desktop_surface(wparent); |
| 267 | weston_desktop_xwayland_surface_change_state(surface, TRANSIENT, parent, |
| 268 | x, y); |
| 269 | } |
| 270 | |
| 271 | static void |
| 272 | set_fullscreen(struct weston_desktop_xwayland_surface *surface, |
| 273 | struct weston_output *output) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 274 | { |
| 275 | weston_desktop_xwayland_surface_change_state(surface, FULLSCREEN, NULL, |
| 276 | 0, 0); |
| 277 | weston_desktop_api_fullscreen_requested(surface->desktop, |
| 278 | surface->surface, true, output); |
| 279 | } |
| 280 | |
| 281 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 282 | set_xwayland(struct weston_desktop_xwayland_surface *surface, int x, int y) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 283 | { |
| 284 | weston_desktop_xwayland_surface_change_state(surface, XWAYLAND, NULL, |
| 285 | x, y); |
| 286 | } |
| 287 | |
| 288 | static int |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 289 | move(struct weston_desktop_xwayland_surface *surface, |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 290 | struct weston_pointer *pointer) |
| 291 | { |
| 292 | if (surface->state == TOPLEVEL || |
| 293 | surface->state == MAXIMIZED || |
| 294 | surface->state == FULLSCREEN) |
| 295 | weston_desktop_api_move(surface->desktop, surface->surface, |
| 296 | pointer->seat, pointer->grab_serial); |
| 297 | return 0; |
| 298 | } |
| 299 | |
| 300 | static int |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 301 | resize(struct weston_desktop_xwayland_surface *surface, |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 302 | struct weston_pointer *pointer, uint32_t edges) |
| 303 | { |
| 304 | if (surface->state == TOPLEVEL || |
| 305 | surface->state == MAXIMIZED || |
| 306 | surface->state == FULLSCREEN) |
| 307 | weston_desktop_api_resize(surface->desktop, surface->surface, |
| 308 | pointer->seat, pointer->grab_serial, |
| 309 | edges); |
| 310 | return 0; |
| 311 | } |
| 312 | |
| 313 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 314 | set_title(struct weston_desktop_xwayland_surface *surface, const char *title) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 315 | { |
| 316 | weston_desktop_surface_set_title(surface->surface, title); |
| 317 | } |
| 318 | |
| 319 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 320 | set_window_geometry(struct weston_desktop_xwayland_surface *surface, |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 321 | int32_t x, int32_t y, int32_t width, int32_t height) |
| 322 | { |
| 323 | surface->has_next_geometry = true; |
| 324 | surface->next_geometry.x = x; |
| 325 | surface->next_geometry.y = y; |
| 326 | surface->next_geometry.width = width; |
| 327 | surface->next_geometry.height = height; |
| 328 | } |
| 329 | |
| 330 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 331 | set_maximized(struct weston_desktop_xwayland_surface *surface) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 332 | { |
| 333 | weston_desktop_xwayland_surface_change_state(surface, MAXIMIZED, NULL, |
| 334 | 0, 0); |
| 335 | weston_desktop_api_maximized_requested(surface->desktop, |
| 336 | surface->surface, true); |
| 337 | } |
| 338 | |
| 339 | static void |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 340 | set_pid(struct weston_desktop_xwayland_surface *surface, pid_t pid) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 341 | { |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 342 | weston_desktop_surface_set_pid(surface->surface, pid); |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 343 | } |
| 344 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 345 | static const struct weston_desktop_xwayland_interface weston_desktop_xwayland_interface = { |
| 346 | .create_surface = create_surface, |
| 347 | .set_toplevel = set_toplevel, |
| 348 | .set_parent = set_parent, |
| 349 | .set_transient = set_transient, |
| 350 | .set_fullscreen = set_fullscreen, |
| 351 | .set_xwayland = set_xwayland, |
| 352 | .move = move, |
| 353 | .resize = resize, |
| 354 | .set_title = set_title, |
| 355 | .set_window_geometry = set_window_geometry, |
| 356 | .set_maximized = set_maximized, |
| 357 | .set_pid = set_pid, |
| 358 | }; |
| 359 | |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 360 | void |
| 361 | weston_desktop_xwayland_init(struct weston_desktop *desktop) |
| 362 | { |
| 363 | struct weston_compositor *compositor = weston_desktop_get_compositor(desktop); |
| 364 | struct weston_desktop_xwayland *xwayland; |
| 365 | |
| 366 | xwayland = zalloc(sizeof(struct weston_desktop_xwayland)); |
| 367 | if (xwayland == NULL) |
| 368 | return; |
| 369 | |
| 370 | xwayland->desktop = desktop; |
| 371 | xwayland->client = weston_desktop_client_create(desktop, NULL, NULL, NULL, NULL, 0, 0); |
| 372 | |
| 373 | weston_layer_init(&xwayland->layer, &compositor->cursor_layer.link); |
| 374 | |
Quentin Glidic | 955cec0 | 2016-08-12 10:41:35 +0200 | [diff] [blame] | 375 | compositor->xwayland = xwayland; |
| 376 | compositor->xwayland_interface = &weston_desktop_xwayland_interface; |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 377 | } |