aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-05-28 02:14:19 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-05-28 02:14:19 +1000
commitc26cf76e059bad8ba7217f53af6571a2f1e87355 (patch)
tree85301eeb8d78e5f45ab464b8d9e95a06cc0b4995 /include
parent0d9b1f4d39b2299e349a6823a83bf0de95d14e77 (diff)
Move previous cursor_position inline.
Diffstat (limited to 'include')
-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 @@
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,