]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: reset cursor image on cursor theme reload
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 9 Jun 2024 22:01:54 +0000 (00:01 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 11 Jun 2024 20:40:06 +0000 (21:40 +0100)
commit067c59e5266e155b534c05702cbe2322add5c110
tree9b0d994e637900450cf79e509bc62761f128c98b
parent9ff7f27dabed82e5325d1b88b63799d2f972ee2e
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
include/xwayland.h
src/input/cursor.c
src/xwayland.c