Skip to content

Linux engine: a foreground drag whose press lands outside the named window, on another application's window, answers ok though nothing was dragged #497

Open

Description

@SSFSKIM

Status (ruling 1145, 11-23): unverified. The evidence below was a harness error. The harness's xdotool geometry counted Openbox's decoration twice, so the press landed on the page just above the drag source, inside the named window, not on another application (linux171 task 142, fix 2550547/1317cc35 on harness-487). With the corrected press, Electron's drag starts and the case is exercised. The behaviour in the title, a press that genuinely lands on another application's window, is untested. This ticket now covers testing it: build a cell where the named window's source is covered or offset so the press lands on another app, and record what the engine answers. If it answers ok with nothing dragged, the bug below applies; if it refuses or answers unconfirmed, close this ticket.


What happens

On the dedicated foreground route, drag first activates the named window, then presses at the start of the path. Sometimes the start lies outside the named window, over another application's window. Task 142's t487-named cell is one example: a GTK 4 window is named and the path starts on Electron's page beside it. The press then goes to a window that is not active.

On a private Xvfb with openbox, Electron requested activation at the press in 25 of 25 such drags and never started its drag and drop. The engine saw no take, so it confirmed no drop. It still answered a plain ok, which means only that the motion ran, and the agent reads that ok as a finished drag. This happens on both 0.4.3 and 0.4.4. It is a false ok in what is now the default Linux engine (ruling 891).

Two halves to fix

  1. The cause. On the foreground route, a press point that lies outside the named window, on another application's window, is either refused before anything is pressed, or answered with a notice that names that application. The design decides which.
  2. The answer. A drag whose press was spent on another application's activation must not answer a plain ok.

Evidence

  • harness-487 at 86d6b94, in docs/evidence/2026-10-28-own-linux-engine/m5/harness-487/. The pilot ran 10 foreground drags: no drag and drop started, and all 10 answered ok.
  • task-142-report.md.
  • A desktop-route drag over the same page worked 5 of 5 times.

Tests

A live test puts a named window beside a press source of another family. The reply either refuses or names the application, and when it refuses, nothing is pressed.

Not in 0.4.4. Found while building #487's live cell (ruling 1113).

Activity

  1. added
    bug
    status:ready-for-architect
    priority:P2
    on Nov 23, 2026
  2. added
    priority:P3
    and removed
    priority:P2
    on Nov 23, 2026
  3. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    Ruling 1145: the original evidence was a harness coordinate error (press landed inside the window above the source). The genuine case, a press on another application's window, is untested; this ticket now covers testing it. Priority lowered to P3.

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-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions