Skip to content
  • Peter Hutterer's avatar
    xkb: release XTEST pointer buttons on physical releases. (#28808) · 14327858
    Peter Hutterer authored
    If a button release event is posted for the MD pointer, post a release event
    through the matching XTEST device. This way, a client who posts a button
    press through the XTEST extension cannot inadvertedly lock the button.
    
    This behaviour is required for historical reasons, until server 1.7 the core
    pointer would release a button press on physical events, regardless of the
    XTEST state. Clients seem to rely on this behaviour, causing seemingly stuck
    grabs.
    
    The merged behaviour is kept for multiple keyboard PointerKey events, if two
    physical keyboards hold the button down as a result of PointerKey actions,
    the button is not released until the last keyboard releases the button.
    
    X.Org Bug 28808 <http://bugs.freedesktop.org/show_bug.cgi?id=28808
    
    >
    
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    14327858