mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Add WindowBuilder::transparent
This is required to help hardware accelerated libraries like glutin
that accept WindowBuilder instead of RawWindowHandle, since the api
to access builder properties directly was removed.
Follow up to 44288f6
.
This commit is contained in:
parent
3e0a544eb8
commit
8ef9fe44c7
|
@ -10,6 +10,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||||
|
|
||||||
- Build docs on `docs.rs` for iOS and Android as well.
|
- Build docs on `docs.rs` for iOS and Android as well.
|
||||||
- **Breaking:** Removed the `WindowAttributes` struct, since all its functionality is accessible from `WindowBuilder`.
|
- **Breaking:** Removed the `WindowAttributes` struct, since all its functionality is accessible from `WindowBuilder`.
|
||||||
|
- Added `WindowBuilder::transparent` getter to check if the user set `transparent` attribute.
|
||||||
- On macOS, Fix emitting `Event::LoopDestroyed` on CMD+Q.
|
- On macOS, Fix emitting `Event::LoopDestroyed` on CMD+Q.
|
||||||
- On macOS, fixed an issue where having multiple windows would prevent run_return from ever returning.
|
- On macOS, fixed an issue where having multiple windows would prevent run_return from ever returning.
|
||||||
- On Wayland, fix bug where the cursor wouldn't hide in GNOME.
|
- On Wayland, fix bug where the cursor wouldn't hide in GNOME.
|
||||||
|
|
|
@ -278,6 +278,12 @@ impl WindowBuilder {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get whether the window will support transparency.
|
||||||
|
#[inline]
|
||||||
|
pub fn transparent(&self) -> bool {
|
||||||
|
self.window.transparent
|
||||||
|
}
|
||||||
|
|
||||||
/// Sets whether the window should have a border, a title bar, etc.
|
/// Sets whether the window should have a border, a title bar, etc.
|
||||||
///
|
///
|
||||||
/// The default is `true`.
|
/// The default is `true`.
|
||||||
|
|
Loading…
Reference in a new issue