Skip to content
  • Chase Douglas's avatar
    Create a new dix touch record for an emulated touch with no listeners · 8ce9616a
    Chase Douglas authored and Peter Hutterer's avatar Peter Hutterer committed
    
    
    As a special case, if a still physically active pointer emulated touch
    has no listeners and the device is explicitly grabbed for pointer
    events, create a new dix touch record for the grab only.
    
    This allows for clients to "hand off" grabs. For example, when dragging
    a window under compiz the window decorator sees the button press and
    then ungrabs the implicit grab. It then tells compiz to grab the device,
    and compiz then moves the window with the pointer motion. This is racy,
    but is allowed by the input protocol for pointer events when there are
    no other clients with a grab on the device.
    
    Signed-off-by: default avatarChase Douglas <chase.douglas@canonical.com>
    Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    (cherry picked from commit d0449851)
    8ce9616a