diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-18 09:29:18 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-18 09:29:18 +1000 |
commit | 07a897b3b797b99022a9dfffffc0af2ff50aea85 (patch) | |
tree | 21f148c0741dc02e9ef6fea0c43af47b48f36098 /sway/input/cursor.c | |
parent | Rename mousedown to down and make seat operation a named enum (diff) | |
download | sway-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.c | 1 |
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 | ||
230 | static void handle_move_motion(struct sway_seat *seat, | 231 | static void handle_move_motion(struct sway_seat *seat, |