diff options
author | Michele Sorcinelli <michelesr@autistici.org> | 2021-08-16 19:17:24 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-17 09:17:59 +0200 |
commit | cae7b981369a7670a0fc15bfdd2c65592e199ad8 (patch) | |
tree | 2691120eb1667630bd281fefa405c964367f1fbc /xwayland | |
parent | 0c19a2826632f5f0f9ac615b010d319f4cfa2c77 (diff) |
xwayland: do not free cursor in handle_server_ready()
If XWayland terminates for any reason, xwm_set_cursor() has to
to be called again, so the cursor has to stick around.
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwayland.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index f0999120..dc782284 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -50,8 +50,6 @@ static void handle_server_ready(struct wl_listener *listener, void *data) { struct wlr_xwayland_cursor *cur = xwayland->cursor; xwm_set_cursor(xwayland->xwm, cur->pixels, cur->stride, cur->width, cur->height, cur->hotspot_x, cur->hotspot_y); - free(cur); - xwayland->cursor = NULL; } wlr_signal_emit_safe(&xwayland->events.ready, NULL); |