Skip to content

Linux engine: a drag_handle end that already sees an Electron take skips the settle and answers a landed drop unconfirmed #488

Open

Description

@SSFSKIM

Problem

At a handle end (native/linux-engine/src/engine/handle.rs ~942–945), the first before_release read can report a take, which sets taken_by_now. The hold's wait is then skipped, and held_take stays false.

If the cursor watcher's thread hasn't yet processed the same selection event, the settle condition fails and both pings are skipped. settled is then None. A drop that landed, with an accepting cursor, is answered unconfirmed, and the next acting request is refused. That fails closed: it's honest, but it costs the user a refusal.

Found by M5's whole-branch review (2026-11-23).

Fix

Carry the initial positive take into the settle decision, alongside takes found during the wait.

Test

A take seen at the first read, with the watcher lagging, still settles.

Target: linux-engine 0.4.4.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 23, 2026
  2. added 2 commits that reference this issue on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions