Skip to content

Commit 482a310

Browse files
committed
fix rust-windowing#2502 on ==0.30.0
1 parent 337d507 commit 482a310

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform_impl/windows/window_state.rs

+3
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ impl WindowFlags {
278278
if self.contains(WindowFlags::NO_BACK_BUFFER) {
279279
style_ex |= WS_EX_NOREDIRECTIONBITMAP;
280280
}
281+
if self.contains(WindowFlags::TRANSPARENT) {
282+
style_ex |= WS_EX_LAYERED;
283+
}
281284
if self.contains(WindowFlags::CHILD) {
282285
style |= WS_CHILD; // This is incompatible with WS_POPUP if that gets added eventually.
283286

0 commit comments

Comments
 (0)