~alan-griffiths/mir/add-mir-Server-add_pre_init_callback

Viewing all changes in revision 3842.

  • Committer: Tarmac
  • Author(s): Andreas Pokorny
  • Date: 2016-11-24 03:48:02 UTC
  • mfrom: (3814.2.4 fix-1639749)
  • Revision ID: tarmac-20161124034802-qjq2v8m4clpq4yuy
Fix duplicated motion events on enter and filter out enter events in nested input platform
  
If the surface input dispatcher detects that the surface underneath the mouse cursor has changed it would send a leave event to the old window (containing the relative mouse motion) and the current position. The new window receives an enter event, and also the relative motion. After that the original event was sent. That led to sending the relative motion twice. It now depends on whether the original event contained a state change other than the motion itself. If so the motion change is removed from the original event, if not the event is discarded. Fixes: https://bugs.launchpad.net/bugs/1639749.

Approved by mir-ci-bot, Kevin DuBois, Alexandros Frantzis.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: