Fix transparent window with decorations (#1011)
* Fix transparent window with decorations * To changelog, added fix for transparent decorated windows.
This commit is contained in:
parent
7d3ff3d2d9
commit
28775be115
2 changed files with 4 additions and 2 deletions
|
|
@ -219,8 +219,9 @@ impl WindowFlags {
|
|||
if self.contains(WindowFlags::NO_BACK_BUFFER) {
|
||||
style_ex |= WS_EX_NOREDIRECTIONBITMAP;
|
||||
}
|
||||
// if self.contains(WindowFlags::TRANSPARENT) {
|
||||
// }
|
||||
if self.contains(WindowFlags::TRANSPARENT) && self.contains(WindowFlags::DECORATIONS) {
|
||||
style_ex |= WS_EX_LAYERED;
|
||||
}
|
||||
if self.contains(WindowFlags::CHILD) {
|
||||
style |= WS_CHILD; // This is incompatible with WS_POPUP if that gets added eventually.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue