xwm: Be more picky about set_mapped calls
@@ -167,12 +167,8 @@ impl X11Surface {
/// It is an error to call this function on override redirect windows
pub fn set_mapped(&self, mapped: bool) -> Result<(), X11SurfaceError> {
if self.override_redirect {
- if mapped {
- return Ok(());
- } else {
return Err(X11SurfaceError::UnsupportedForOverrideRedirect);
}
- }
if let Some(conn) = self.conn.upgrade() {
if let Some(frame) = self.state.lock().unwrap().mapped_onto {
