mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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.
This commit is contained in:
parent
0c19a28266
commit
cae7b98136
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue