xwayland: reset cursor image on cursor theme reload

As wlr_xwayland caches the pixel data when not yet started
up due to the delayed lazy startup approach, we do have to
re-set the xwayland cursor image when reloading the cursor
theme. Otherwise the first X11 client connected will cause
the xwayland server to use the cached (and destroyed) pixel
data.

To reproduce:
- Compile with b_sanitize=address,undefined
- Start labwc (nothing in autostart that could create
  a X11 connection, e.g. no GTK or X11 application)
- Reconfigure
- Start some X11 client
This commit is contained in:
Consolatis 2024-06-10 00:01:54 +02:00 committed by Johan Malm
parent 9ff7f27dab
commit 067c59e526
3 changed files with 56 additions and 0 deletions

View file

@ -95,5 +95,7 @@ void xwayland_adjust_usable_area(struct view *view,
void xwayland_update_workarea(struct server *server);
void xwayland_reset_cursor(struct server *server);
#endif /* HAVE_XWAYLAND */
#endif /* LABWC_XWAYLAND_H */