Read attached MATE menus outside the focused panel

Validate attached panel menus through fresh showing state and selected menu ancestors, and recognize explicit GTK menu focus without a FOCUSED state. Preserve X11 foreground ownership and reject stale menu focus and actions after dismissal.

Add native ownership and speech/braille regressions covering desktop, bottom panel, top panel, editor, reopening, submenus, and impostor rejection.

Validation: targeted native race tests, AT-SPI race suite, normal app suite, required speech regression check, build, vet, and parity ledger passed. The broader app race run exceeded its three-minute limit while compressing a Tentacle fixture. golangci-lint is unavailable; live MATE speech and physical braille acceptance remain pending.
This commit is contained in:
ak47 committed 2026-11-11 23:12:33 -05:00
1 parent 8592d3be11
commit f27dec8502
15 files changed
+206 -34

No files matched your search

+17
View File
@@ -62,6 +62,18 @@ submenuItem.set_submenu(submenu)
menu.append(submenuItem)
menu.append(Gtk.MenuItem(label="Last application"))
menu.show_all()
if "--attached" in sys.argv:
menuBar = Gtk.MenuBar()
applications = Gtk.MenuItem(label="Applications")
applications.set_submenu(menu)
menuBar.append(applications)
box.pack_start(menuBar, False, False, 0)
menuBar.show_all()
bottomWindow = Gtk.Window(title="Bottom panel fixture " + processName)
bottomEntry = Gtk.Entry()
bottomEntry.get_accessible().set_name("Bottom panel entry")
bottomWindow.add(bottomEntry)
bottomWindow.show_all()
pendingInput = ""
@@ -75,11 +87,16 @@ def receive_command(_source, _condition):
while "\n" in pendingInput:
command, pendingInput = pendingInput.split("\n", 1)
if command == "popup":
if "--attached" in sys.argv:
menuBar.select_item(applications)
menu.popup_at_widget(button, Gdk.Gravity.SOUTH_WEST, Gdk.Gravity.NORTH_WEST, None)
elif command == "close":
menu.popdown()
elif command == "ordinary":
window.get_accessible().emit("activate")
elif command == "bottom":
bottomEntry.set_text("Bottom panel ready")
bottomEntry.grab_focus()
elif command == "stale":
firstItem.get_accessible().notify_state_change(Atk.StateType.FOCUSED, True)
barrier.set_text("Stale barrier")