Address review feedback

This commit is contained in:
Drew DeVault 2018-03-31 15:13:27 -04:00
parent b9d2983324
commit f2332dc75c
3 changed files with 12 additions and 9 deletions

View file

@ -120,9 +120,6 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
return NULL;
}
void _sway_seat_set_focus(struct sway_seat *seat,
struct sway_container *container, bool warp);
static void cursor_send_pointer_motion(struct sway_cursor *cursor,
uint32_t time) {
struct wlr_seat *seat = cursor->seat->wlr_seat;
@ -130,7 +127,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,
double sx, sy;
struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy);
if (c && config->focus_follows_mouse) {
_sway_seat_set_focus(cursor->seat, c, false);
sway_seat_set_focus_warp(cursor->seat, c, false);
}
// reset cursor if switching between clients