mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Support cursors over wayland clients
Apparently wayland has fucking client-side cursors, too
This commit is contained in:
parent
929537c158
commit
7a40eb6de6
4 changed files with 60 additions and 4 deletions
|
|
@ -22,6 +22,13 @@ struct buffer {
|
|||
bool busy;
|
||||
};
|
||||
|
||||
struct cursor {
|
||||
struct wl_surface *surface;
|
||||
struct wl_cursor_theme *cursor_theme;
|
||||
struct wl_cursor *cursor;
|
||||
struct wl_poitner *pointer;
|
||||
};
|
||||
|
||||
struct client_state {
|
||||
struct wl_compositor *compositor;
|
||||
struct wl_display *display;
|
||||
|
|
@ -34,6 +41,7 @@ struct client_state {
|
|||
struct wl_surface *surface;
|
||||
struct wl_shell_surface *shell_surface;
|
||||
struct wl_callback *frame_cb;
|
||||
struct cursor cursor;
|
||||
uint32_t width, height;
|
||||
cairo_t *cairo;
|
||||
list_t *outputs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue