diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-03-29 21:19:57 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-03-29 21:22:39 -0400 |
commit | 4c394a0e9ee04b46ed349f7b3ddf67c53719b3b6 (patch) | |
tree | 0833690f34940296a9cbd6b3dd4ba682d0713370 /sway/input | |
parent | 80col (diff) | |
download | sway-4c394a0e9ee04b46ed349f7b3ddf67c53719b3b6.tar.gz sway-4c394a0e9ee04b46ed349f7b3ddf67c53719b3b6.tar.zst sway-4c394a0e9ee04b46ed349f7b3ddf67c53719b3b6.zip |
address feedback
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 4 | ||||
-rw-r--r-- | sway/input/seat.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index a0e4b9be..d57ac3e3 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -50,7 +50,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor, | |||
50 | } | 50 | } |
51 | 51 | ||
52 | struct sway_container *swayc = | 52 | struct sway_container *swayc = |
53 | sway_container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy); | 53 | container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy); |
54 | if (swayc) { | 54 | if (swayc) { |
55 | wlr_seat_pointer_notify_enter(seat, surface, sx, sy); | 55 | wlr_seat_pointer_notify_enter(seat, surface, sx, sy); |
56 | wlr_seat_pointer_notify_motion(seat, time, sx, sy); | 56 | wlr_seat_pointer_notify_motion(seat, time, sx, sy); |
@@ -88,7 +88,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) { | |||
88 | struct wlr_surface *surface = NULL; | 88 | struct wlr_surface *surface = NULL; |
89 | double sx, sy; | 89 | double sx, sy; |
90 | struct sway_container *swayc = | 90 | struct sway_container *swayc = |
91 | sway_container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy); | 91 | container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy); |
92 | 92 | ||
93 | sway_seat_set_focus(cursor->seat, swayc); | 93 | sway_seat_set_focus(cursor->seat, swayc); |
94 | } | 94 | } |
diff --git a/sway/input/seat.c b/sway/input/seat.c index 8e2189de..be0e15de 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -130,7 +130,7 @@ struct sway_seat *sway_seat_create(struct sway_input_manager *input, | |||
130 | // init the focus stack | 130 | // init the focus stack |
131 | wl_list_init(&seat->focus_stack); | 131 | wl_list_init(&seat->focus_stack); |
132 | 132 | ||
133 | sway_container_for_each_bfs(&root_container, collect_focus_iter, seat); | 133 | container_for_each(&root_container, collect_focus_iter, seat); |
134 | 134 | ||
135 | wl_signal_add(&root_container.sway_root->events.new_container, | 135 | wl_signal_add(&root_container.sway_root->events.new_container, |
136 | &seat->new_container); | 136 | &seat->new_container); |