summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-01-23 16:00:03 -0500
committerChris Michael <cp.michael@samsung.com>2015-01-23 16:01:08 -0500
commitc6e70107dcaff51ca782ed747fbc574e3ab9bb62 (patch)
tree2978feed2749824025319f2feea603af9c12d8b4 /src/lib/ecore_wayland
parent40cb2cd3d44e3266b7a50a3c64626034da2817e4 (diff)
ecore-wayland: Don't send a mouse_up on grab release unless we
actually have a grabbed button Summary: If we don't have an actual grabbed mouse button, then don't send a mouse up event. Caught this while adding e_grabinput support to Enlightenment. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 0bfc11e..76d115d 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -162,8 +162,9 @@ ecore_wl_input_ungrab(Ecore_Wl_Input *input)
162 162
163 if (!input) return; 163 if (!input) return;
164 164
165 _ecore_wl_input_mouse_up_send(input, input->grab, 165 if ((input->grab) && (input->grab_button))
166 0, input->grab_button, input->grab_timestamp); 166 _ecore_wl_input_mouse_up_send(input, input->grab, 0, input->grab_button,
167 input->grab_timestamp);
167 168
168 input->grab = NULL; 169 input->grab = NULL;
169 input->grab_button = 0; 170 input->grab_button = 0;