mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Update Window::is_maximized
doc about X11/Wayland
The support for `Window::is_maximized` on X11/Wayland was added in c916eb6
,
however the doc comment on the method was stating that it's not supported.
This commit is contained in:
parent
b7e7755edd
commit
7846e6a31e
2 changed files with 2 additions and 3 deletions
|
@ -87,7 +87,7 @@ impl Window {
|
||||||
|
|
||||||
let window_id = super::make_wid(&surface);
|
let window_id = super::make_wid(&surface);
|
||||||
let maximized = Arc::new(AtomicBool::new(false));
|
let maximized = Arc::new(AtomicBool::new(false));
|
||||||
let maximzied_clone = maximized.clone();
|
let maximized_clone = maximized.clone();
|
||||||
let fullscreen = Arc::new(AtomicBool::new(false));
|
let fullscreen = Arc::new(AtomicBool::new(false));
|
||||||
let fullscreen_clone = fullscreen.clone();
|
let fullscreen_clone = fullscreen.clone();
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ impl Window {
|
||||||
}
|
}
|
||||||
Event::Configure { new_size, states } => {
|
Event::Configure { new_size, states } => {
|
||||||
let is_maximized = states.contains(&State::Maximized);
|
let is_maximized = states.contains(&State::Maximized);
|
||||||
maximzied_clone.store(is_maximized, Ordering::Relaxed);
|
maximized_clone.store(is_maximized, Ordering::Relaxed);
|
||||||
let is_fullscreen = states.contains(&State::Fullscreen);
|
let is_fullscreen = states.contains(&State::Fullscreen);
|
||||||
fullscreen_clone.store(is_fullscreen, Ordering::Relaxed);
|
fullscreen_clone.store(is_fullscreen, Ordering::Relaxed);
|
||||||
|
|
||||||
|
|
|
@ -718,7 +718,6 @@ impl Window {
|
||||||
///
|
///
|
||||||
/// ## Platform-specific
|
/// ## Platform-specific
|
||||||
///
|
///
|
||||||
/// - **Wayland / X11:** Not implemented.
|
|
||||||
/// - **iOS / Android / Web:** Unsupported.
|
/// - **iOS / Android / Web:** Unsupported.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_maximized(&self) -> bool {
|
pub fn is_maximized(&self) -> bool {
|
||||||
|
|
Loading…
Add table
Reference in a new issue