• verdre's avatar
    wayland/pointer: Set focus to NULL when the cursor is hidden · a2a8f0cd
    verdre authored
    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
    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.
meta-wayland-pointer.c 41.9 KB