Move previous cursor_position inline.

This commit is contained in:
Scott Leggett 2018-05-28 02:14:19 +10:00
parent d1ebbebea0
commit 1b8de39287
2 changed files with 6 additions and 16 deletions

View file

@ -6,7 +6,9 @@
struct sway_cursor {
struct sway_seat *seat;
struct wlr_cursor *cursor;
struct cursor_position *previous;
struct {
double x, y;
} previous;
struct wlr_xcursor_manager *xcursor_manager;
struct wl_client *image_client;
@ -28,10 +30,6 @@ struct sway_cursor {
struct wl_listener request_set_cursor;
};
struct cursor_position {
double x, y;
};
void sway_cursor_destroy(struct sway_cursor *cursor);
struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,