aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-21 10:57:14 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-22 23:10:19 +1000
commit6767d8a593723a9b69d018eed13d24a789be9516 (patch)
tree06d971d2e76b0d3706d2f627b2102572f9c9cecd /include/sway
parent0c87bff5d1ce686afdc25d37eee4bdd8f08abdd3 (diff)
Prevent re-uploading the same cursor image multiple times
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/input/cursor.h4
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