Skip to content

Linux engine: drags into Chromium (HTML5 drop, selection, range) can't work on a shared desktop while the person's pointer is outside the window (every engine) #248

Open

Description

@SSFSKIM

Gap

On a shared Linux desktop (device mode shared), drags into a Chromium window fail whenever the person's real pointer is outside that window: HTML5 drag and drop, text selection and range inputs. This holds in every engine: cua's own, OpenAI's pinned build and its newest. cua answers an error for these drags (the press watch, #171 M3 task 20). OpenAI's engine answers success with nothing done. Drags the page tracks itself through mouse or pointer events (document listeners, setPointerCapture) do land.

Cause

From Chrome's source, measured in task 20:

  • Blink resets its mouse-press state on any mouse move that carries no button (event_handler.cc, crbug 527582).
  • When the synthetic press arrives, Chrome takes a capture grab. With the real pointer outside its window, the grab sends Chrome an EnterNotify (mode Grab), which Chrome turns into exactly such a move.
  • The drag's motions then start nothing, and the release reaches the page as a click.

Nothing the engine sends on the background route prevents this. The atomic press (the press and every sample through 4 px under one server grab) doesn't either, because the crossing follows Chrome's own grab.

Evidence

On #171's branch (docs/evidence/2026-10-28-own-linux-engine/m3/drop-misses/task20/ and the branch-(ii) build, 3ca5dda), on the m3-gate engine, with the pointer parked outside Chrome's window and then inside:

  • the HTML5 drop, the text selection and the range drag landed 0/20 each outside;
  • the document mouse-event drag and the pointer-capture drag landed 20/20 outside, the same as inside;
  • the earlier task-20 run had range at 11/12 outside. That difference was not investigated.

On a dedicated desktop the engine takes the foreground route (it moves the real pointer), and these drags land: 120/120.

Candidates to investigate (none verified)

  • An XInput 2 master pointer of the agent's own (MPX), so that Chrome's grab follows a pointer that is inside the window. It shows a second cursor, and every family needs checking.
  • For Chrome itself, cua's browser surface (CDP), which drives a tab's drag without the X pointer.
  • An AT-SPI route for selections (the Text interface's selection), where the engine can tell a selection from a drag.

Pick it up when

A task needs one of these drags on a shared desktop, or #224's Wayland backend (portal plus libei) changes the picture.

Spawned by #171 (M3, task 20).

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    on Nov 1, 2026
  2. added a commit that references this issue on Nov 1, 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

    enhancementpriority:P3status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions