Skip to content

fix(gui): apply wasVisible-guard to four remaining setGeometry sites (#2646)#2685

Merged
ten9876 merged 1 commit into
mainfrom
auto/fix2646-wasvisible-guards
May 15, 2026
Merged

fix(gui): apply wasVisible-guard to four remaining setGeometry sites (#2646)#2685
ten9876 merged 1 commit into
mainfrom
auto/fix2646-wasvisible-guards

Conversation

@ten9876

@ten9876 ten9876 commented May 15, 2026

Copy link
Copy Markdown
Collaborator

PRs #2580 and #2635 (closing #2603) applied the
if (wasVisible) setGeometry(geom) guard across most
setFramelessMode(bool) implementations. Four sites with the same
code-shape were missed by both passes — fix listed in #2646:

  1. ConnectionPanel::setFramelessMode
  2. AetherialAudioStrip::setFramelessMode
  3. FloatingContainerWindow::setFramelessMode
  4. FloatingContainerWindow::setAlwaysOnTop

All four captured wasVisible and geom early but called
setGeometry(geom) unconditionally after setWindowFlags(flags).
On a cold-launched (never-shown) instance, geom is the default
top-left rect and the unconditional setGeometry clobbers Qt's
normal placement, leaving the window stuck at (0,0) on first show.

Closes #2646.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…2646)

PRs #2580 and #2635 (closing #2603) applied the
`if (wasVisible) setGeometry(geom)` guard across most
`setFramelessMode(bool)` implementations.  Four sites with the same
code-shape were missed by both passes — fix listed in #2646:

1. ConnectionPanel::setFramelessMode
2. AetherialAudioStrip::setFramelessMode
3. FloatingContainerWindow::setFramelessMode
4. FloatingContainerWindow::setAlwaysOnTop

All four captured `wasVisible` and `geom` early but called
`setGeometry(geom)` unconditionally after `setWindowFlags(flags)`.
On a cold-launched (never-shown) instance, `geom` is the default
top-left rect and the unconditional `setGeometry` clobbers Qt's
normal placement, leaving the window stuck at (0,0) on first show.

Closes #2646.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ten9876 ten9876 requested a review from jensenpat as a code owner May 15, 2026 15:00
@ten9876 ten9876 enabled auto-merge (squash) May 15, 2026 15:00
@ten9876 ten9876 merged commit c895d38 into main May 15, 2026
5 checks passed
@ten9876 ten9876 deleted the auto/fix2646-wasvisible-guards branch May 15, 2026 15:22
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.

Apply wasVisible-guard for setGeometry(geom) to four more sites missed by #2603

1 participant