You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window transparency doesn't work on Windows 10 #260
The DwmEnableBlurBehindWindow method for making windows transparent on Windows doesn't seem to work on Windows 10 anymore. On Windows 10 the DwmExtendFrameIntoClientArea function can be called with the margins set to -1 to make it fully transparent.
EDIT: The new method only works if the window decorations are disabled.
I'm trying to implement this by GetProcAddress in runtime. But should we cache kernel32 module handle in winit? Otherwise we may need to call LoadLibrary(or GetModuleHandle) every time the method is called.
Activity
LYP951018 commentedon Jan 22, 2018
I'm trying to implement this by
GetProcAddressin runtime. But should we cachekernel32module handle in winit? Otherwise we may need to callLoadLibrary(orGetModuleHandle) every time the method is called.retep998 commentedon Jan 22, 2018
Use
lazy_staticto lazily loadkernel32.dlland keep the handle to it around and do the same for each of the function pointers. Never let go.haudan commentedon Jun 18, 2018
I will attempt to fix this as part of #568.
subnomo commentedon Oct 13, 2018
I've enabled transparency using layered windows. It works with window decorations, as well. See my patch:
EDIT: This works if you just want a transparent window, it's not a replacement for
DwmEnableBlurBehindWindow...Windows: Fix transparency (rust-windowing#260)
Windows: Fix transparency (rust-windowing#260)
Windows: Fix transparency (#675)
subnomo commentedon Dec 8, 2018
@francesca64 I believe this was fixed by #675 😁
Provide a placeholder definition of `CAMetalLayer` in the C API.
Merge next back to dev branch (rust-windowing#305)