diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
commit | 92fef27eaa0b52c9d37bdabff14ae21cd6660f46 (patch) | |
tree | 7a923bbbc233079006597d82721117bae88b6ac6 /sway/input/cursor.c | |
parent | seat configuration (diff) | |
download | sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.gz sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.zst sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.zip |
basic configuration
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 217c2ddb..3aa2d1bc 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -24,7 +24,7 @@ static void cursor_update_position(struct sway_cursor *cursor) { | |||
24 | 24 | ||
25 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, | 25 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, |
26 | uint32_t time) { | 26 | uint32_t time) { |
27 | struct wlr_seat *seat = cursor->seat->seat; | 27 | struct wlr_seat *seat = cursor->seat->wlr_seat; |
28 | struct wlr_surface *surface = NULL; | 28 | struct wlr_surface *surface = NULL; |
29 | double sx, sy; | 29 | double sx, sy; |
30 | swayc_t *swayc = | 30 | swayc_t *swayc = |
@@ -72,7 +72,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) { | |||
72 | sway_seat_set_focus(cursor->seat, swayc); | 72 | sway_seat_set_focus(cursor->seat, swayc); |
73 | } | 73 | } |
74 | 74 | ||
75 | wlr_seat_pointer_notify_button(cursor->seat->seat, event->time_msec, | 75 | wlr_seat_pointer_notify_button(cursor->seat->wlr_seat, event->time_msec, |
76 | event->button, event->state); | 76 | event->button, event->state); |
77 | } | 77 | } |
78 | 78 | ||
@@ -80,7 +80,7 @@ static void handle_cursor_axis(struct wl_listener *listener, void *data) { | |||
80 | struct sway_cursor *cursor = | 80 | struct sway_cursor *cursor = |
81 | wl_container_of(listener, cursor, axis); | 81 | wl_container_of(listener, cursor, axis); |
82 | struct wlr_event_pointer_axis *event = data; | 82 | struct wlr_event_pointer_axis *event = data; |
83 | wlr_seat_pointer_notify_axis(cursor->seat->seat, event->time_msec, | 83 | wlr_seat_pointer_notify_axis(cursor->seat->wlr_seat, event->time_msec, |
84 | event->orientation, event->delta); | 84 | event->orientation, event->delta); |
85 | } | 85 | } |
86 | 86 | ||
@@ -173,7 +173,7 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat) { | |||
173 | wl_signal_add(&wlr_cursor->events.tablet_tool_tip, &cursor->tool_tip); | 173 | wl_signal_add(&wlr_cursor->events.tablet_tool_tip, &cursor->tool_tip); |
174 | cursor->tool_tip.notify = handle_tool_tip; | 174 | cursor->tool_tip.notify = handle_tool_tip; |
175 | 175 | ||
176 | wl_signal_add(&seat->seat->events.request_set_cursor, | 176 | wl_signal_add(&seat->wlr_seat->events.request_set_cursor, |
177 | &cursor->request_set_cursor); | 177 | &cursor->request_set_cursor); |
178 | cursor->request_set_cursor.notify = handle_request_set_cursor; | 178 | cursor->request_set_cursor.notify = handle_request_set_cursor; |
179 | 179 | ||