From 966e65393560fea6db84fb42019fa27127975cdc Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 17 Jan 2021 18:05:38 -0500 Subject: 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 --- include/backend/x11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/backend/x11.h') diff --git a/include/backend/x11.h b/include/backend/x11.h index b21d818e..79c61b88 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -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; -- cgit v1.2.3