mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
xwayland: free render picture backing cursor
Otherwise it gets leaked never to be recovered.
This commit is contained in:
parent
a290d7a78d
commit
8ad078f46f
1 changed files with 1 additions and 0 deletions
|
@ -1832,6 +1832,7 @@ void xwm_set_cursor(struct wlr_xwm *xwm, const uint8_t *pixels, uint32_t stride,
|
||||||
xcb_render_create_cursor(xwm->xcb_conn, xwm->cursor, pic, hotspot_x,
|
xcb_render_create_cursor(xwm->xcb_conn, xwm->cursor, pic, hotspot_x,
|
||||||
hotspot_y);
|
hotspot_y);
|
||||||
xcb_free_pixmap(xwm->xcb_conn, pix);
|
xcb_free_pixmap(xwm->xcb_conn, pix);
|
||||||
|
xcb_render_free_picture(xwm->xcb_conn, pic);
|
||||||
|
|
||||||
uint32_t values[] = {xwm->cursor};
|
uint32_t values[] = {xwm->cursor};
|
||||||
xcb_change_window_attributes(xwm->xcb_conn, xwm->screen->root,
|
xcb_change_window_attributes(xwm->xcb_conn, xwm->screen->root,
|
||||||
|
|
Loading…
Reference in a new issue