ecore/wayland: Send a mouse up event when the implicit grab starts. 60/13660/2
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 11 Dec 2013 21:01:28 +0000 (19:01 -0200)
committerRusty Lynch <rusty.lynch@intel.com>
Wed, 11 Dec 2013 21:56:21 +0000 (13:56 -0800)
commit878089c05b4882e25afb64ec280802364edeed73
treeab8a071bc1b0a42c8981d81ff5ae5fa9331bcb3a
parent636114eb7c7925e71a8e29ce0e88f753270fb50f
ecore/wayland: Send a mouse up event when the implicit grab starts.

The previous workaround used to send a mouse up event to the
application, using the pointer enter callback to determine when an
implicit grab has finished.  This was "simulating" a mouse up event when
the surface move or resize finished.

However, this doesn't work for touch-based move. The pointer enter isn't
emitted, because the wl_touch interface doesn't have the concept of a
pointer.

Changing this code to make it more similar to what Weston's toytoolkit
does, the mouse up event is sent as soon as the move or resize grab
starts. After that, the compositor takes care of the move/resize almost
entirely.

Change-Id: Ib8daac999137be2fd1e66f82aa3b07b474666a88
Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/lib/ecore_evas/ecore_evas_wayland_egl.c
src/lib/ecore_evas/ecore_evas_wayland_shm.c
src/lib/ecore_wayland/Ecore_Wayland.h
src/lib/ecore_wayland/ecore_wl_input.c
src/lib/ecore_wayland/ecore_wl_private.h
src/lib/ecore_wayland/ecore_wl_window.c