mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
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:
parent
9ff7f27dab
commit
067c59e526
3 changed files with 56 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "resistance.h"
|
||||
#include "ssd.h"
|
||||
#include "view.h"
|
||||
#include "xwayland.h"
|
||||
|
||||
#define LAB_CURSOR_SHAPE_V1_VERSION 1
|
||||
|
||||
|
|
@ -1403,6 +1404,9 @@ void
|
|||
cursor_reload(struct seat *seat)
|
||||
{
|
||||
cursor_load(seat);
|
||||
#if HAVE_XWAYLAND
|
||||
xwayland_reset_cursor(seat->server);
|
||||
#endif
|
||||
cursor_update_image(seat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue