diff --git a/CHANGELOG.md b/CHANGELOG.md index a6f21653..fe1b712a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ - Add `MonitorHandle::video_modes` method for retrieving supported video modes for the given monitor. - On Wayland, the window now exists even if nothing has been drawn. - On Windows, fix initial dimensions of a fullscreen window. +- On Windows, Fix transparent borderless windows rendering wrong. # Version 0.19.1 (2019-04-08) diff --git a/src/platform_impl/windows/window_state.rs b/src/platform_impl/windows/window_state.rs index 290c6eb3..f0e0dd4f 100644 --- a/src/platform_impl/windows/window_state.rs +++ b/src/platform_impl/windows/window_state.rs @@ -198,11 +198,8 @@ impl WindowFlags { if self.contains(WindowFlags::NO_BACK_BUFFER) { style_ex |= WS_EX_NOREDIRECTIONBITMAP; } - if self.contains(WindowFlags::TRANSPARENT) { - // Is this necessary? The docs say that WS_EX_LAYERED requires a windows class without - // CS_OWNDC, and Winit windows have that flag set. - style_ex |= WS_EX_LAYERED; - } + // if self.contains(WindowFlags::TRANSPARENT) { + // } if self.contains(WindowFlags::CHILD) { style |= WS_CHILD; // This is incompatible with WS_POPUP if that gets added eventually. }