aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar Scott Leggett <scott@sl.id.au>2018-05-28 02:14:19 +1000
committerLibravatar Scott Leggett <scott@sl.id.au>2018-05-28 02:14:19 +1000
commit1b8de3928714950d715053523d99aa1572ac63e0 (patch)
tree85301eeb8d78e5f45ab464b8d9e95a06cc0b4995 /include/sway/input/cursor.h
parentRemove unused function. (diff)
downloadsway-1b8de3928714950d715053523d99aa1572ac63e0.tar.gz
sway-1b8de3928714950d715053523d99aa1572ac63e0.tar.zst
sway-1b8de3928714950d715053523d99aa1572ac63e0.zip
Move previous cursor_position inline.
Diffstat (limited to 'include/sway/input/cursor.h')
-rw-r--r--include/sway/input/cursor.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 03cb8b83..5dd109ca 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -6,7 +6,9 @@
6struct sway_cursor { 6struct sway_cursor {
7 struct sway_seat *seat; 7 struct sway_seat *seat;
8 struct wlr_cursor *cursor; 8 struct wlr_cursor *cursor;
9 struct cursor_position *previous; 9 struct {
10 double x, y;
11 } previous;
10 struct wlr_xcursor_manager *xcursor_manager; 12 struct wlr_xcursor_manager *xcursor_manager;
11 13
12 struct wl_client *image_client; 14 struct wl_client *image_client;
@@ -28,10 +30,6 @@ struct sway_cursor {
28 struct wl_listener request_set_cursor; 30 struct wl_listener request_set_cursor;
29}; 31};
30 32
31struct cursor_position {
32 double x, y;
33};
34
35void sway_cursor_destroy(struct sway_cursor *cursor); 33void sway_cursor_destroy(struct sway_cursor *cursor);
36struct sway_cursor *sway_cursor_create(struct sway_seat *seat); 34struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
37void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, 35void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,