You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
Activity
#171 spec: task 20 (Blink's press reset, the atomic press and its wat…