Add Window::set_transparent
Provide a hint to system compositor whether the window is transparent or not. Only implemented on macOS and Wayland for now.
This commit is contained in:
parent
6f60c7a6cc
commit
62ce14a013
13 changed files with 84 additions and 1 deletions
|
|
@ -431,6 +431,9 @@ impl<T: 'static> EventLoop<T> {
|
|||
window_handle.window.resize(size.width, size.height);
|
||||
window_handle.window.refresh();
|
||||
|
||||
// Update the opaque region.
|
||||
window_handle.set_transparent(window_handle.transparent.get());
|
||||
|
||||
// Mark that refresh isn't required, since we've done it right now.
|
||||
state
|
||||
.window_user_requests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue