Skip to content

Bring Typewriter plugin window to foreground on launch#271

Merged
niksedk merged 1 commit into
mainfrom
typewriter-foreground
May 17, 2026
Merged

Bring Typewriter plugin window to foreground on launch#271
niksedk merged 1 commit into
mainfrom
typewriter-foreground

Conversation

@niksedk
Copy link
Copy Markdown
Member

@niksedk niksedk commented May 17, 2026

Summary

  • Plugin process has no parent window relationship to Subtitle Edit, so on macOS (and sometimes Windows/Linux) the dialog opened behind SE and looked like nothing happened.
  • Override `OnOpened` to briefly set `Topmost = true`, call `Activate()`, then drop `Topmost` back to `false`. The window jumps to the top of the z-order with focus, and the user can still place other windows over it afterwards.
  • Bumped to 1.0.2 and pointed `se5-plugins.json` at `se5-typewriter-v1.0.2` so anyone with 1.0.1 installed sees Update available.

Test plan

  • Install 1.0.2 — invoke from SE — window appears in front of SE.

The plugin process has no parent window relationship to Subtitle Edit,
so on macOS (and sometimes Windows/Linux) the dialog opened behind SE
and looked like nothing happened. Override OnOpened to briefly set
Topmost=true and call Activate() so the window jumps to the top of
the z-order with focus, then drop Topmost so the user can still put
other windows over it.

Bump plugin to 1.0.2 and point se5-plugins.json at the upcoming
se5-typewriter-v1.0.2 release.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@niksedk niksedk merged commit fa7acb9 into main May 17, 2026
7 checks passed
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