aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 09:29:18 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 09:29:18 +1000
commit07a897b3b797b99022a9dfffffc0af2ff50aea85 (patch)
tree21f148c0741dc02e9ef6fea0c43af47b48f36098 /sway/input/cursor.c
parentRename mousedown to down and make seat operation a named enum (diff)
downloadsway-07a897b3b797b99022a9dfffffc0af2ff50aea85.tar.gz
sway-07a897b3b797b99022a9dfffffc0af2ff50aea85.tar.zst
sway-07a897b3b797b99022a9dfffffc0af2ff50aea85.zip
Don't send motion if the cursor hasn't moved
Prevents GTK+ comboboxes from immediately closing.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 5a2743e3..37fb203d 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -225,6 +225,7 @@ static void handle_down_motion(struct sway_seat *seat,
225 double sy = seat->op_ref_con_ly + moved_y; 225 double sy = seat->op_ref_con_ly + moved_y;
226 wlr_seat_pointer_notify_motion(seat->wlr_seat, time_msec, sx, sy); 226 wlr_seat_pointer_notify_motion(seat->wlr_seat, time_msec, sx, sy);
227 } 227 }
228 seat->op_moved = true;
228} 229}
229 230
230static void handle_move_motion(struct sway_seat *seat, 231static void handle_move_motion(struct sway_seat *seat,