mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
impl Default for WindowBuilder (#1373)
This commit is contained in:
parent
6b0875728c
commit
02ac7456e4
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
- On Windows, fix bug where `RedrawRequested` would only get emitted every other iteration of the event loop.
|
- On Windows, fix bug where `RedrawRequested` would only get emitted every other iteration of the event loop.
|
||||||
- On X11, fix deadlock on window state when handling certain window events.
|
- On X11, fix deadlock on window state when handling certain window events.
|
||||||
|
- `WindowBuilder` now implements `Default`.
|
||||||
|
|
||||||
# 0.20.0 (2020-01-05)
|
# 0.20.0 (2020-01-05)
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ impl WindowId {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Object that allows you to build windows.
|
/// Object that allows you to build windows.
|
||||||
#[derive(Clone)]
|
#[derive(Clone, Default)]
|
||||||
pub struct WindowBuilder {
|
pub struct WindowBuilder {
|
||||||
/// The attributes to use to create the window.
|
/// The attributes to use to create the window.
|
||||||
pub window: WindowAttributes,
|
pub window: WindowAttributes,
|
||||||
|
@ -185,10 +185,7 @@ impl WindowBuilder {
|
||||||
/// Initializes a new `WindowBuilder` with default values.
|
/// Initializes a new `WindowBuilder` with default values.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
WindowBuilder {
|
Default::default()
|
||||||
window: Default::default(),
|
|
||||||
platform_specific: Default::default(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Requests the window to be of specific dimensions.
|
/// Requests the window to be of specific dimensions.
|
||||||
|
|
Loading…
Reference in a new issue