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 /include/sway/input/seat.h | |
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 'include/sway/input/seat.h')
-rw-r--r-- | include/sway/input/seat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index c07db61c..5c404ecd 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -70,6 +70,7 @@ struct sway_seat { | |||
70 | double op_ref_lx, op_ref_ly; // cursor's x/y at start of op | 70 | double op_ref_lx, op_ref_ly; // cursor's x/y at start of op |
71 | double op_ref_width, op_ref_height; // container's size at start of op | 71 | double op_ref_width, op_ref_height; // container's size at start of op |
72 | double op_ref_con_lx, op_ref_con_ly; // container's x/y at start of op | 72 | double op_ref_con_lx, op_ref_con_ly; // container's x/y at start of op |
73 | bool op_moved; // if the mouse moved during a down op | ||
73 | 74 | ||
74 | uint32_t last_button; | 75 | uint32_t last_button; |
75 | uint32_t last_button_serial; | 76 | uint32_t last_button_serial; |