mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Prevent re-uploading the same cursor image multiple times
This commit is contained in:
parent
0c87bff5d1
commit
6767d8a593
2 changed files with 17 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ struct sway_cursor {
|
|||
} previous;
|
||||
struct wlr_xcursor_manager *xcursor_manager;
|
||||
|
||||
const char *image;
|
||||
struct wl_client *image_client;
|
||||
|
||||
struct wl_listener motion;
|
||||
|
|
@ -37,4 +38,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
|||
void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec,
|
||||
uint32_t button, enum wlr_button_state state);
|
||||
|
||||
void cursor_set_image(struct sway_cursor *cursor, const char *image,
|
||||
struct wl_client *client);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue