Prevent re-uploading the same cursor image multiple times

This commit is contained in:
Ryan Dwyer 2018-07-21 10:57:14 +10:00
parent 0c87bff5d1
commit 6767d8a593
2 changed files with 17 additions and 9 deletions

View file

@ -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