[PATCH weston] input: Don't use uninitialized variables in default_grab_pointer_focus()

Bill Spitzak spitzak at gmail.com
Tue Apr 14 16:14:07 PDT 2015


On 04/12/2015 11:51 PM, Pekka Paalanen wrote:

> I know! We use an arbitrary leave/enter pair to signal pointer location
> changes to clients when there is no physical input. That is, the
> pointer device doesn't move, but the surface or view moves. We cannot
> fake a wl_pointer.motion event, because it's not a user's physical
> action. It happens when the surface/view moves under the pointer for any
> reason.

Reusing the enter event for this seems like a good idea.

However it would be better to just send a redundant Enter event, which 
will avoid the client having to look ahead to avoid blinking it's display.


More information about the wayland-devel mailing list