summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-01-13 11:37:02 -0500
committerChris Michael <cp.michael@samsung.com>2015-01-13 11:37:02 -0500
commit6b1e62afa4a6f1b6f76425945315ff9043b1062e (patch)
treeebdf5623b4b67cc83849efd2b712f365ea5167a7 /src/lib/ecore_wayland
parent70f0bc47ed4f19f514a934537ceb43a131b1643b (diff)
ecore-wayland: Fix issue with Elementary DnD test not releasing mouse
Summary: When we do an input_ungrab, we should be sending a mouse up event so that apps/elm/etc know that the mouse has been released. This fixes an issue in the Elm Features DnD test report by Daniel Zaoui @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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index e914d82..0bfc11e 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -161,6 +161,10 @@ ecore_wl_input_ungrab(Ecore_Wl_Input *input)
161 LOGFN(__FILE__, __LINE__, __FUNCTION__); 161 LOGFN(__FILE__, __LINE__, __FUNCTION__);
162 162
163 if (!input) return; 163 if (!input) return;
164
165 _ecore_wl_input_mouse_up_send(input, input->grab,
166 0, input->grab_button, input->grab_timestamp);
167
164 input->grab = NULL; 168 input->grab = NULL;
165 input->grab_button = 0; 169 input->grab_button = 0;
166} 170}
@@ -181,9 +185,6 @@ _ecore_wl_input_grab_release(Ecore_Wl_Input *input, Ecore_Wl_Window *win)
181 if (!input) return; 185 if (!input) return;
182 if (input->grab != win) return; 186 if (input->grab != win) return;
183 187
184 _ecore_wl_input_mouse_up_send(input, input->grab,
185 0, input->grab_button, input->grab_timestamp);
186
187 ecore_wl_input_ungrab(input); 188 ecore_wl_input_ungrab(input);
188} 189}
189 190