Skip to content

Linux engine: a Qt dialog opened by the request's own click takes the person's active window (shared desktop) #285

Open

Description

@SSFSKIM

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

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

Activity

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

    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