backend/x11: set a blank cursor rather than hiding globally

This actually simplifies the logic since we no longer have to wait for
enter/leave events, and also improves the UX when e.g. handling a crash
with gdb attached.

See #2659
This commit is contained in:
Ilia Mirkin 2021-01-17 18:05:38 -05:00 committed by Simon Ser
parent 04d89a8bc5
commit 966e653935
4 changed files with 21 additions and 34 deletions

View file

@ -47,7 +47,6 @@ struct wlr_x11_output {
struct wl_list buffers; // wlr_x11_buffer::link
bool cursor_hidden;
uint64_t last_msc;
};
@ -68,6 +67,7 @@ struct wlr_x11_backend {
xcb_depth_t *depth;
xcb_visualid_t visualid;
xcb_colormap_t colormap;
xcb_cursor_t cursor;
uint32_t dri3_major_version, dri3_minor_version;
size_t requested_outputs;