Skip to content

Linux engine: an Electron drop's settle uses the named window's rest, not the press source's, on the dedicated foreground route (fail-open) #487

Closed

Description

@SSFSKIM

Problem

On the dedicated foreground route, the window a request names need not be the window under the press. Since 0.4.1, the engine resolves the actual press source to pick the Electron cursor watcher. But it passes the named window's pacing.rest to that watcher's floor allowance and to sync_and_rest (native/linux-engine/src/engine/pointer.rs ~757–764).

Suppose the named window's family has zero rest, a GTK 4 window say, and the path starts in an Electron window beside it. Then both settle pings run with no renderer rest. The browser thread can answer both while the renderer's last position is still outstanding. A stale accept then passes as settled, and the drop answers ok where it may not have landed. That is fail-open.

Conditions: dedicated mode, a named window that isn't the press window, and an Electron source. Found by M5's whole-branch review (2026-11-23). M5's runs didn't observe it, because they named the press window.

Fix

Use the actual source family's rest for the floor allowance and for sync_and_rest. Keep the named window's pacing for the rest of the motion.

Test

A fake Electron source beside a zero-rest named window gets the Electron rest before both pings.

Target: linux-engine 0.4.4, with a re-pin and a reach rerun.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 23, 2026
  2. added 9 commits that reference this issue on Nov 23, 2026
  3. removed
    status:ready-for-implementer
    on Nov 23, 2026
  4. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #516 (cua 0.29.9, linux engine 0.4.4)

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:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions