aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-31 15:13:27 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-31 15:20:43 -0400
commitf2332dc75c05a62f87ba290433f12f4ce7f467ec (patch)
tree67c2f8e9d67cb45a9c18bbea17eb139f4c7eed82 /sway/input/cursor.c
parentFix interaction between warping and following (diff)
downloadsway-f2332dc75c05a62f87ba290433f12f4ce7f467ec.tar.gz
sway-f2332dc75c05a62f87ba290433f12f4ce7f467ec.tar.zst
sway-f2332dc75c05a62f87ba290433f12f4ce7f467ec.zip
Address review feedback
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 2a096033..4a3f558d 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -120,9 +120,6 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
120 return NULL; 120 return NULL;
121} 121}
122 122
123void _sway_seat_set_focus(struct sway_seat *seat,
124 struct sway_container *container, bool warp);
125
126static void cursor_send_pointer_motion(struct sway_cursor *cursor, 123static void cursor_send_pointer_motion(struct sway_cursor *cursor,
127 uint32_t time) { 124 uint32_t time) {
128 struct wlr_seat *seat = cursor->seat->wlr_seat; 125 struct wlr_seat *seat = cursor->seat->wlr_seat;
@@ -130,7 +127,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,
130 double sx, sy; 127 double sx, sy;
131 struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy); 128 struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy);
132 if (c && config->focus_follows_mouse) { 129 if (c && config->focus_follows_mouse) {
133 _sway_seat_set_focus(cursor->seat, c, false); 130 sway_seat_set_focus_warp(cursor->seat, c, false);
134 } 131 }
135 132
136 // reset cursor if switching between clients 133 // reset cursor if switching between clients