Skip to content

Fix Windows overlay visibility and transparency - #39

Closed
Savage1001 wants to merge 1 commit into
anomalyco:devfrom
Savage1001:fix/windows-overlay-hide
Closed

Savage1001 wants to merge 1 commit into
anomalyco:devfrom
Savage1001:fix/windows-overlay-hide

Conversation

@Savage1001

Copy link
Copy Markdown

On some Windows systems, a transparent overlay can appear inside a black rectangle while visible and leave that rectangle behind when hidden.

Windows Vulkan may report the Inherit alpha mode even when the resulting overlay is opaque. Other systems can use different drivers, adapters, compositor behavior, or alpha modes and may display the same overlay correctly. Prefer an adapter with an explicit alpha mode in this case, while retaining the original inherited mode when no better adapter is available. Separately, hide the HWND through Win32 to match the direct Win32 show; winit's cached visibility was never set by that show.

Validation:

  • Ran the Windows background example through show, hide, show, hide; native window visibility matched each request.
  • Checked desktop pixels with the overlay over a solid background: the pill was visible and its transparent corner matched the background. The original application was also tested on the affected Windows system.
  • The Windows cargo test -p rune --lib build currently fails in the unrelated truncation-tooltip test because set_native_help is unavailable on Windows; the new unit tests could not be run through the unmodified suite.

@Savage1001 Savage1001 closed this Oct 29, 2026
@Savage1001
Savage1001 deleted the fix/windows-overlay-hide branch October 29, 2026 07:02
@Savage1001
Savage1001 restored the fix/windows-overlay-hide branch October 29, 2026 07:03
@Savage1001 Savage1001 reopened this Oct 29, 2026
@thdxr

thdxr commented Nov 6, 2026

Copy link
Copy Markdown
Member

thanks for this. rune is agent-driven, so we don't take pull requests. if you'd like a change or a bug fixed, have your agent open an issue describing it (https://github.com/anomalyco/rune/issues) and our agents will pick it up.

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.

2 participants