Skip to content

Commit

Permalink
Update Window::is_maximized doc about X11/Wayland
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisnc authored Feb 28, 2022
1 parent b7e7755 commit 7846e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/linux/wayland/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Window {

let window_id = super::make_wid(&surface);
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_clone = fullscreen.clone();

Expand Down Expand Up @@ -115,7 +115,7 @@ impl Window {
}
Event::Configure { new_size, states } => {
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);
fullscreen_clone.store(is_fullscreen, Ordering::Relaxed);

Expand Down
1 change: 0 additions & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,6 @@ impl Window {
///
/// ## Platform-specific
///
/// - **Wayland / X11:** Not implemented.
/// - **iOS / Android / Web:** Unsupported.
#[inline]
pub fn is_maximized(&self) -> bool {
Expand Down

0 comments on commit 7846e6a

Please sign in to comment.