Skip to content
  • Jonas Dreßler's avatar
    wayland/pointer: Set focus to NULL when the cursor is hidden · a2a8f0cd
    Jonas Dreßler authored and Carlos Garnacho's avatar Carlos Garnacho committed
    This is important when using a touchscreen or stylus instead of a mouse
    or touchpad. If the cursor only gets hidden and the focus stays the
    same, the window will still send hover events to the UI element under
    the cursor causing unexpected distractions while interacting with the
    touchscreen.
    
    Fix this by emitting a visibility-changed signal from the cursor tracker
    which then triggers a focus surface sync and always set the focus
    surface to NULL when it's synced while the cursor is hidden.
    
    !448
    a2a8f0cd