Repository navigation
Description
M4's T17 confirms an Electron drop by the drag cursor at the release. The accept must be identified by its own Xcursor image, shown over an XdndAware top-level under the real pointer, and put up after the drag entered that window, with the server ordering the entry and the cursor change. A Chrome drop is confirmed by Chrome's _NET_ACTIVE_WINDOW request. On the final engine (83dd7e5), 0 of 1,619 counted Electron drags answered ok without a drop, at three loads. The design session's convergence line (2026-11-12) leaves the races below as stated limits of the M4 PR, collected here.
- A person's pointer motion during the release.
- Under the rule, a relative device's motion counts as outside, so it answers unconfirmed. It costs a false "unconfirmed", never a false ok.
- A person's motion between the engine's pointer read and its button-up can still move the release off the point that was judged. That window is a few milliseconds.
- This is
sharedmode's standing race with the person's mouse (compare Linux engine: a Chromium drag that landed can still answer 'may not have started the drag' (page-tracked drags with the pointer outside; real movement during a selection or range) #249).
- A drop target that stalls before its first
XdndStatus.- Chromium ends such a drag with no drop and leaves its cursor unchanged.
- The rule covers the plain case: an accept put up before the entry does not confirm. The hung-target cell answered unconfirmed 180/180.
- The open path is Chromium lagging its own events. An accepting status from the window being left can reach Chromium just before it handles the motion out of that window. The cursor change then lands after the server's entry motion into the next window, and reads as put up after the entry. It passes only if that next window sends no status of its own by the release.
- It was not seen in 180 hung-target drags. The exact signal is the target's
XdndStatus, which another process cannot read (only RECORD can).
- Restacks during a drag.
- The window a motion was in is read from one stacking snapshot after the release, so a restack during the drag is judged against the final stacking.
- Seen in none of the counted sittings.
Leads:
- RECORD on the XDND client messages (
XdndStatusandXdndFinished) would give the exact signal for Electron. It is a privileged extension, and not every X server enables it. - For races 1 and 3, a server grab spanning the final read and the button-up. It conflicts with Chromium's atomic press, as Linux engine: a restack between the foreground route's last stack read and its press #307 does.
Evidence: docs/evidence/2026-10-28-own-linux-engine/m4/drag-handle/fix3/README.md. The spec's Decision Log entry "T17 (#250): drag_handle as built, and Electron's drop confirmation" (2026-11-12) has the details.
Activity
#171 M4 spec: T17's race limits name #365
SSFSKIM commentedon Nov 12, 2026
A fourth race of the same class, from M4's whole-branch review (2026-11-12): the desktop route's Chrome confirmation looks up the window under the path's end before the drag, not at the release. It is wrong only if a person moves the pointer off the end point before the release, so it joins race 1 (a person's motion during the release) as a stated limit.
#171 M4 T18: the hung sink's false ok is #365's declared race, and it…
SSFSKIM commentedon Nov 12, 2026
Measured rate for race 2 (a drop target that stalls after an accept elsewhere), from M4's T18 gate work (2026-11-12): 1 false ok in 173 cold handle drags at the gate's window load, about 0.6% (T17 wave 3: 0/60; a dedicated count on a release-built 0.4.0 engine, ddb6202: 0 of 111 counted, 9 more excluded as unverifiable because they ended over an Electron child window; the gate pilot on cc18a6f: 1 of 2). Across three loads in T17's wave 3: 0 in 180. Caveat: review fixes between the pilot's engine and the dedicated count touched handle.rs and pointer.rs (the expired-handle record, the live root size and the foreground route), not the cursor rule; the counts cannot prove the pilot's hit was this race rather than something those fixes changed. In the gate, the hung-sink 'slow' cell is judged as this declared race (a finding with counts per load); a false ok in any ordinary cell stays a hard failure.
SSFSKIM commentedon Nov 14, 2026
Update from M4's release gate (2026-11-13/14): V5 on :0 found Chrome drag false successes at the gate's window load. Cause: Chromium's X11 CoalescePendingMotionEvents (ui/base/x/x11_util.cc) moves queued core MotionNotify into last_event without counting them, so when the browser thread is busy the first queued motion is dispatched and the rest of a SendEvent path is discarded (real XI2 input is unaffected). Held route fixed in M4 (0f18528): with no take by the path's end, the engine re-sends the final point every <=12 ms until the take or the hold's end; prefreeze-150 went 0/30 -> 30/30 landed. Residuals added to this ticket (stalled-app class): (a) held route: a browser that reads again later than about 220 ms after the press still loses the path and answers ok (sweep: 150/200/215 ms stalls land; 230/260/300 lose). (b) guarded route (Chrome raised, not activated; no hold): a lost path answers ok, 20/20 at prefreeze-150; a renderer-late dragstart after button-up, refused by Chrome, answers ok, 20/20 at prefreeze-30 and -40. A _NET_WM_PING catch-up check was measured and rejected: it reads the browser's X loop, not the renderer, so it can't make (b) honest. An upstream Chromium report is drafted, pending the owner's OK.
SSFSKIM commentedon Nov 14, 2026
Landed with #171 M4, PR #380 (78b4959, linux-engine-v0.4.0).
M4's release gate (candidate 2's records, standing for candidate 3): the hung sink answered ok with no drop and nothing pending on 0 of 60 drags at idle (H1), 0 of 60 at the gate's window load (H2) and 0 of 60 at twice the load (L4a). It is judged as this ticket's declared race. Candidate 1's V5 false successes are fixed in candidate 2 (the hold's refresh), with 0 false ok in 63 drop samples on
:0. The residuals in the comment above ship as stated limits.