Place the title window on a selected monitor #148

Manually merged
github merged 1 commit from github-bot/gh-148 into main 2026-11-27 04:26:44 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 04:16 UTC · original
TaynanGT:review/gecko-monitor-125 → main · +175 −8 · 2 files · 1 commits · merged 2026-11-27 04:21 UTC

Carries Geckomacabre’s monitor selector from #125 with the follow-up review fixes. The selector uses one monitor for the windowed and fullscreen rectangles. Child, owned, tool and zero-sized windows keep their original placement. The chosen monitor’s default windowed rectangle respects VICTORY_WINDOW_MAX.

All 17 lifecycle tests and targeted Clippy passed. The tests cover a secondary monitor with a negative origin, capped default sizing, and fullscreen restore.

**@⁠TaynanGT** on GitHub · 2026-11-27 04:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/148) `TaynanGT:review/gecko-monitor-125` → `main` · +175 −8 · 2 files · 1 commits · merged 2026-11-27 04:21 UTC Carries Geckomacabre’s monitor selector from #125 with the follow-up review fixes. The selector uses one monitor for the windowed and fullscreen rectangles. Child, owned, tool and zero-sized windows keep their original placement. The chosen monitor’s default windowed rectangle respects `VICTORY_WINDOW_MAX`. All 17 lifecycle tests and targeted Clippy passed. The tests cover a secondary monitor with a negative origin, capped default sizing, and fullscreen restore.
Port the monitor selection from #125 and resolve default geometry before fitting to the window limit. Preserve the requested geometry of helper windows and keep the fullscreen toggle restricted to the eligible title window.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:21:16 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 04:16 UTC · original · edited 2026-11-27 04:19 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T04:18:29.318193Z bb4f3e7 PR opened
🔒 Security Review ✅ Completed 2026-11-27T04:19:26.300129Z bb4f3e7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 04:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/148#issuecomment-7209671053) · edited 2026-11-27 04:19 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"bb4f3e760b05cedff3bff0f08ab8fe9c7b99912d","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":"bb4f3e760b05cedff3bff0f08ab8fe9c7b99912d","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"bb4f3e760b05cedff3bff0f08ab8fe9c7b99912d","mergeGateEnabled":false,"pullRequestNumber":148,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:18:29.318193Z">2026-11-27T04:18:29.318193Z</relative-time> | `bb4f3e7` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:19:26.300129Z">2026-11-27T04:19:26.300129Z</relative-time> | `bb4f3e7` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 04:18 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb4f3e760b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 04:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/148#pullrequestreview-6083438285) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `bb4f3e760b` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
@ -168,2 +166,2 @@
let screen = unsafe { (wm::GetSystemMetrics(wm::SM_CXSCREEN), wm::GetSystemMetrics(wm::SM_CYSCREEN)) };
let Some(full) = full_screen(ex_style, style, !parent.is_null(), screen) else {
if !placeable(ex_style, style, !parent.is_null()) || width == 0 || height == 0 {
return ((ex_style, style, (x, y, width, height)), None);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 04:18 UTC · original

P2 Badge Resolve default dimensions before excluding zero-sized windows

For an overlapped window created with width = CW_USEDEFAULT, Win32 ignores the height argument, so height = 0 is a valid request for a normal default-sized window, not necessarily a zero-sized helper. This new guard returns before resolving that default, bypassing VICTORY_MONITOR placement and VICTORY_FULLSCREEN=1; returning no WindowState also disables F11/Alt+Enter toggling for that window. The existing restores_default_window_geometry_on_a_monitor_with_negative_coordinates test already covers this default-width/zero-height combination. Exempt default-width requests from the zero-height exclusion while continuing to preserve genuinely zero-sized helpers.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 04:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/148#discussion_r4715634185) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Resolve default dimensions before excluding zero-sized windows** For an overlapped window created with `width = CW_USEDEFAULT`, Win32 ignores the height argument, so `height = 0` is a valid request for a normal default-sized window, not necessarily a zero-sized helper. This new guard returns before resolving that default, bypassing `VICTORY_MONITOR` placement and `VICTORY_FULLSCREEN=1`; returning no `WindowState` also disables F11/Alt+Enter toggling for that window. The existing `restores_default_window_geometry_on_a_monitor_with_negative_coordinates` test already covers this default-width/zero-height combination. Exempt default-width requests from the zero-height exclusion while continuing to preserve genuinely zero-sized helpers. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
github manually merged commit 59242df31c into main 2026-11-27 04:26:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.