tony / oxwm

inline `window_manager::handle_restart` Browse files
emzywastaken committed 2025-10-13 parent 23924cf commit 53a4fb66ee001f022b54fbf1f03bc39974eb86dc
Showing 1 changed file with 1 additions and 5 deletions. UnifiedSplit
+1 −5 src/window_manager.rs
@@ -299,10 +299,6 @@ impl WindowManager {
299 Ok(()) 299 Ok(())
300 } 300 }
301 301
302 - fn handle_restart(&self) -> Result<bool> {
303 - Ok(true)
304 - }
305 -
306 pub fn run(&mut self) -> Result<bool> { 302 pub fn run(&mut self) -> Result<bool> {
307 println!("oxwm started on display {}", self.screen_number); 303 println!("oxwm started on display {}", self.screen_number);
308 304
@@ -752,7 +748,7 @@ impl WindowManager {
752 let (action, arg) = keyboard::handle_key_press(event, &self.config.keybindings)?; 748 let (action, arg) = keyboard::handle_key_press(event, &self.config.keybindings)?;
753 match action { 749 match action {
754 KeyAction::Quit => return Ok(Some(false)), 750 KeyAction::Quit => return Ok(Some(false)),
755 - KeyAction::Restart => return Ok(Some(self.handle_restart()?)), 751 + KeyAction::Restart => return Ok(Some(true)),
756 _ => self.handle_key_action(action, &arg)?, 752 _ => self.handle_key_action(action, &arg)?,
757 } 753 }
758 } 754 }