diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-07-21 10:57:14 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-07-21 10:57:14 +1000 |
| commit | 7b90a4e62a9332e58b0438667fbf886871cc2c5b (patch) | |
| tree | 06d971d2e76b0d3706d2f627b2102572f9c9cecd /include | |
| parent | df770d519eb30638260458bc76515c56eb284def (diff) | |
Prevent re-uploading the same cursor image multiple times
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/input/cursor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 5dd109ca..b0a3a7c5 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h @@ -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 |
