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 299 Ok(())
300 300 }
301 301
302 - fn handle_restart(&self) -> Result<bool> {
303 - Ok(true)
304 - }
305 -
306 302 pub fn run(&mut self) -> Result<bool> {
307 303 println!("oxwm started on display {}", self.screen_number);
308 304
@@ -752,7 +748,7 @@ impl WindowManager {
752 748 let (action, arg) = keyboard::handle_key_press(event, &self.config.keybindings)?;
753 749 match action {
754 750 KeyAction::Quit => return Ok(Some(false)),
755 - KeyAction::Restart => return Ok(Some(self.handle_restart()?)),
751 + KeyAction::Restart => return Ok(Some(true)),
756 752 _ => self.handle_key_action(action, &arg)?,
757 753 }
758 754 }