mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
address feedback
This commit is contained in:
parent
4ec8bf4cee
commit
4c394a0e9e
5 changed files with 16 additions and 45 deletions
|
|
@ -50,7 +50,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,
|
|||
}
|
||||
|
||||
struct sway_container *swayc =
|
||||
sway_container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy);
|
||||
container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy);
|
||||
if (swayc) {
|
||||
wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
|
||||
wlr_seat_pointer_notify_motion(seat, time, sx, sy);
|
||||
|
|
@ -88,7 +88,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) {
|
|||
struct wlr_surface *surface = NULL;
|
||||
double sx, sy;
|
||||
struct sway_container *swayc =
|
||||
sway_container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy);
|
||||
container_at(&root_container, cursor->x, cursor->y, &surface, &sx, &sy);
|
||||
|
||||
sway_seat_set_focus(cursor->seat, swayc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue