Skip to content

macOS engine: after a background pop-up opens, put all of the person's covered windows back without a transient key-window change #466

Open

Description

@SSFSKIM

Problem

#458 opens a closed pop-up menu of a background app with the button's AXPress. Opening the menu raises the app's window above the person's windows in the window order. Under ruling 1005, #458 restores only the person's focused window, with one AXRaise, so the person's other windows the app's window now covers stay under it. A third app's window that sat above the app's window stays under it too.

A full-order restore was built and qualified on hosted macOS: each recorded person window raised once, back to front, with the focused window last. It put the whole order back (layout a 30/30 + 30/30, d 20/20). It was dropped because the AXRaise of a non-focused window makes that window key for a short time: Finder's AXFocusedWindow moved to F2 or F3 for 13–49 ms before the focused window was raised last. That happened in 38/80 behind rows on 67cf8b2 and 13/30 on 2bd74c6. Keystrokes typed in that window would go to the wrong window. A third app's window can't be raised above the active app's windows by AXRaise at all (layouts b and c, 0/20).

Evidence: kit probe/458-qual, README scripts/probe-337/README.md §"#458 qual 2" at 5246652; runs 44941888406 and 44947309728. Earlier measurements: §"#458's restore" at f39ce42 and §"#458 qual" at efa3505.

What to do

  • Find an ordering mechanism that puts the person's non-focused windows, and a third app's window, back above the app's window without making any of them key, even briefly. Measure it first, using the 5 ms key-window watch.
  • Candidates to measure: ordering through the window server from a connection that may order those windows; raising the windows while the screen-update hold also suppresses key changes; or an AX attribute write that reorders without making the window key.

Acceptance bar

  • With the 5 ms key-window watch, zero rows in which the person's focused or key window leaves its window, even transiently. That takes at least 30 rows each on layouts a and c.
  • Full order restored n/N per layout a–d, with nothing activated.

Related: #458, #463.

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    on Nov 21, 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