Skip to content

On Windows, add window cloaking support via DWMWA_CLOAK#4617

Open
adriankiezik wants to merge 1 commit into
rust-windowing:masterfrom
adriankiezik:windows-cloak
Open

On Windows, add window cloaking support via DWMWA_CLOAK#4617
adriankiezik wants to merge 1 commit into
rust-windowing:masterfrom
adriankiezik:windows-cloak

Conversation

@adriankiezik

@adriankiezik adriankiezik commented Jul 8, 2026

Copy link
Copy Markdown

Summary

Adds Windows window cloaking support via the DWMWA_CLOAK DWM attribute. Cloaking hides a window from the user while it is still composed by DWM (unlike hiding/minimizing), which is useful for things like off-screen rendering, thumbnails, and smooth show/hide without flicker.

API

  • WindowExtWindows::set_cloaked(&self, cloaked: bool) — toggle cloaking on an existing window.
  • WindowAttributesWindows::with_cloaked(self, cloaked: bool) — request cloaking at creation time.

Not supported on Windows 7 and earlier.

Needed this for one of my projects - would be nice to get it merged to upstream.

Adds `WindowExtWindows::set_cloaked` and `WindowAttributesWindows::with_cloaked`
to hide a window from the user while it is still composed by DWM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant