pub(crate) fn visibility_notify(&self) {
        let mut shared_state = self.shared_state.lock();

        match shared_state.visibility {
            Visibility::No => {
                let pending = self.unmap();
                if let Err(e) = self.xconn.check_pending1(pending) {
                    log::error!("Failed to unmap window: {}", e);
                }
            }
            Visibility::Yes => (),
            Visibility::YesWait => {
                shared_state.visibility = Visibility::Yes;

                if let Some(fullscreen) = shared_state.desired_fullscreen.take() {
                    drop(shared_state);
                    self.set_fullscreen(fullscreen);
                }
            }
        }
    }
// Called by EventProcessor when a VisibilityNotify event is received
Called by EventProcessor when a VisibilityNotify event is received
Called by EventProcessor when a VisibilityNotify event is received
pub(crate) fn visibility_notify(&self) {
        let mut shared_state = self.shared_state.lock();
        match shared_state.visibility {
            Visibility::No => {
                let pending = self.unmap();
                if let Err(e) = self.xconn.check_pending1(pending) {
                    log::error!("Failed to unmap window: {}", e);
                }
            }
            Visibility::Yes => (),
            Visibility::YesWait => {
                shared_state.visibility = Visibility::Yes;
                if let Some(fullscreen) = shared_state.desired_fullscreen.take() {
                    drop(shared_state);
                    self.set_fullscreen(fullscreen);
                }
            }
        }
    }
pub ( crate ) fn visibility_notify ( & self ) { let mut shared_state = self . shared_state . lock ( ) ; match shared_state . visibility { Visibility :: No => { let pending = self . unmap ( ) ; if let Err ( e ) = self . xconn . check_pending1 ( pending ) { log :: error ! ( " " e ) ; } } Visibility :: Yes => ( ) , Visibility :: YesWait => { shared_state . visibility = Visibility :: Yes ; if let Some ( fullscreen ) = shared_state . desired_fullscreen . take ( ) { drop ( shared_state ) ; self . set_fullscreen ( fullscreen ) ; } } } }
Called by EventProcessor when a VisibilityNotify event is received
Called by EventProcessor when a VisibilityNotify event is received
&self
&self