Repository navigation
Description
Problem & intent
#171 M4 task 61 stops cua's Linux engine from activating a background Qt window on a shared desktop: before every press, Qt's own active state is read and acknowledged, background input to a window with a mapped modal transient is refused, a press on a native child is refused, and a Qt window without an AT-SPI tree is recognised by _XEMBED_INFO. One case remains. When the request's own click opens a dialog (an Open… button, a menu item that shows a QFileDialog or QMessageBox), Qt activates the dialog it just mapped: 5 of 5 on Qt 5 and Qt 6 in task 61's probe. The person's active window changes, and on a shared desktop that's the stop-rule class. Refusing in advance would need to know what a click will open.
Intent: on a shared desktop, a click that opens a Qt dialog doesn't take the person's active window, or the cost is measured and accepted with numbers.
Seams: the Linux engine's shared-mode press path (native/linux-engine/), the activation witness in scripts/linux-engine-diff/.
Constraints
- Preserve task 61's one-acknowledgement-per-press rule and its refusals.
- Never move, hide or close the person's windows.
- Library rule: OpenAI's crate graph only.
- Spawned by Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 (M4 task 61, declared limit). Parent N/A; blocked-by N/A.
Success criteria
- Measured first: the same probe (a background click that opens a modal dialog) on GTK 3, GTK 4 and Chromium. Task 61 measured only Qt for this case.
- A ruling from those numbers, among options such as: after a press on a toolkit that activates new transients, watch for a newly mapped transient of the target and hand the active state back to the person's window within a bounded time (measured for flicker), or refuse presses on controls whose AT-SPI action is known to open a dialog (where the role or name exposes it), or accept with the numbers in the spec's Decision Log.
- A test that fails today for the chosen change.
Decision log
- 2026-11-05: declared at task 61 by the design session (a dialog the request's own click opens is a limit with a ticket; other toolkits unmeasured for that case).
Sources
- Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 spec
docs/doperpowers/specs/2026-10-28-own-linux-engine-design.md, the Decision Log entry for task 61 (folded at 51dfdf0).
Activity
#171 M4 task 61: the limits cite #285 and #286