mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
04d89a8bc5
commit
966e653935
4 changed files with 21 additions and 34 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue