summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-20 14:18:48 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-03-20 14:30:39 -0500
commit94ddefc6fb3da07676f63b7a9bf31987e85a1aa3 (patch)
tree43308b81a7838bfb668faad5e2332ba875a52bf5 /src/lib/ecore_wl2/ecore_wl2_input.c
parent2db8e8e914b8ce6f437997f9cf9e72c1220f11fe (diff)
ecore_wl2: Send a mouse-up event on reentry after client initiated resize
Apparently when we initiate a client side move in ecore_wl2 we flag that and send a mouse-up immediately on the next pointer enter. Do the same for resize. At some point this might need to be revisited, we should probably be sending a "cancel" at the start of client initiated move/resize instead of an up at the end? Fix T6422
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 3082c5af05..256dd45c15 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -717,11 +717,11 @@ _pointer_cb_enter(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned i
717 717
718 _ecore_wl2_input_mouse_in_send(input, window); 718 _ecore_wl2_input_mouse_in_send(input, window);
719 719
720 if ((window->moving) && (input->grab.window == window)) 720 if ((window->moving || window->resizing) && (input->grab.window == window))
721 { 721 {
722 _ecore_wl2_input_mouse_up_send(input, window, 0, input->grab.button, 722 _ecore_wl2_input_mouse_up_send(input, window, 0, input->grab.button,
723 input->grab.timestamp); 723 input->grab.timestamp);
724 window->moving = EINA_FALSE; 724 window->resizing = window->moving = EINA_FALSE;
725 } 725 }
726} 726}
727 727