Skip to content

Add window z-order control (topmost / front / back)#358

Merged
JE-Chen merged 1 commit into
devfrom
feat/window-zorder-batch
Jun 23, 2026
Merged

Add window z-order control (topmost / front / back)#358
JE-Chen merged 1 commit into
devfrom
feat/window-zorder-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 23, 2026

Copy link
Copy Markdown
Member

The raw set_window_position(hwnd, position) existed in the Win32 backend but wasn't in the facade, had no title-based wrapper, and no topmost/not-topmost semantics — the standard RPA "always-on-top" was missing.

  • plan_zorder(action) (top/bottom/topmost/notopmost): pure action→SetWindowPos insert-after constant + flags lookup, headless-testable; unknown actions raise ValueError.
  • set_topmost (AC_set_topmost), bring_to_front (AC_bring_to_front), send_to_back (AC_send_to_back): resolve a window by title and apply the action through an injectable driver (the snap_window seam) — Win32 by default, no-op off Windows.
  • Tests inject a recording driver to verify the action mapping. Wired through all 5 layers + headless test + EN/Zh docs + WHATS_NEW. Qt-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 31 complexity · 0 duplication

Metric Results
Complexity 31
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit dfd6943 into dev Jun 23, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/window-zorder-batch branch June 23, 2026 03:11
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant