implements PLN-0060 focused window ownership API

This commit is contained in:
2026-05-15 11:45:32 +01:00
parent 32b838f9c4
commit d929f8e2f1
4 changed files with 111 additions and 7 deletions
@@ -2,9 +2,9 @@
id: PLN-0060
ticket: task-owned-shell-windows
title: Plan - Focused Window Ownership API
status: open
status: done
created: 2026-05-15
completed:
completed: 2026-05-15
ref_decisions: [DEC-0027]
tags: [runtime, os, task, window-manager, shell, lifecycle, code]
---
@@ -81,12 +81,12 @@ Included:
## Criterios de Aceite
- [ ] `os.windows().focused_window_belongs_to_task(task_id)` compiles.
- [ ] The predicate returns `true` only for the currently focused
- [x] `os.windows().focused_window_belongs_to_task(task_id)` compiles.
- [x] The predicate returns `true` only for the currently focused
`WindowOwner::Task(task_id)`.
- [ ] `Hub`, `Overlay`, absent focus, stale focus, and other task owners return
- [x] `Hub`, `Overlay`, absent focus, stale focus, and other task owners return
`false`.
- [ ] No firmware behavior changes are included in this plan.
- [x] No firmware behavior changes are included in this plan.
## Tests / Validacao