ecore/wayland: Send a mouse up event when the implicit grab starts.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 29 Nov 2013 18:04:18 +0000 (16:04 -0200)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 29 Nov 2013 20:05:19 +0000 (18:05 -0200)
commita14ee372e0285602a010856b090dcf7f7b3373e3
tree938f6e2bdeebb52b7fc3d9a7fc29e533e1bec970
parent2c95c5ee1d470650480781fe72518ef67263010d
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.

Should fix T468.
src/lib/ecore_wayland/ecore_wl_input.c
src/lib/ecore_wayland/ecore_wl_private.h
src/lib/ecore_wayland/ecore_wl_window.c