aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
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 /include/sway/input/seat.h
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 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h1
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;