diff options
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 35dd5dc8..2a096033 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -120,6 +120,9 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor, | |||
120 | return NULL; | 120 | return NULL; |
121 | } | 121 | } |
122 | 122 | ||
123 | void _sway_seat_set_focus(struct sway_seat *seat, | ||
124 | struct sway_container *container, bool warp); | ||
125 | |||
123 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, | 126 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, |
124 | uint32_t time) { | 127 | uint32_t time) { |
125 | struct wlr_seat *seat = cursor->seat->wlr_seat; | 128 | struct wlr_seat *seat = cursor->seat->wlr_seat; |
@@ -127,7 +130,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor, | |||
127 | double sx, sy; | 130 | double sx, sy; |
128 | struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy); | 131 | struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy); |
129 | if (c && config->focus_follows_mouse) { | 132 | if (c && config->focus_follows_mouse) { |
130 | sway_seat_set_focus(cursor->seat, c); | 133 | _sway_seat_set_focus(cursor->seat, c, false); |
131 | } | 134 | } |
132 | 135 | ||
133 | // reset cursor if switching between clients | 136 | // reset cursor if switching between clients |