Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/xwayland/xwm/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ impl X11Surface {
.contains(&self.atoms._NET_WM_STATE_FULLSCREEN)
}

/// Returns if the window is in the minimized state
pub fn is_minimized(&self) -> bool {
/// Returns if the window is in the hidden state
pub fn is_hidden(&self) -> bool {
self.state
.lock()
.unwrap()
Expand Down Expand Up @@ -565,10 +565,10 @@ impl X11Surface {
Ok(())
}

/// Sets the window as suspended/hidden or not.
/// Sets the window as hidden or not.
///
/// Allows the client to e.g. stop rendering.
pub fn set_suspended(&self, suspended: bool) -> Result<(), ConnectionError> {
pub fn set_hidden(&self, suspended: bool) -> Result<(), ConnectionError> {
if suspended {
self.change_net_state(&[self.atoms._NET_WM_STATE_HIDDEN], &[])?;
} else {
Expand Down
Loading