diff --git a/komorebi/src/window.rs b/komorebi/src/window.rs index d13ac93a..7acf286f 100644 --- a/komorebi/src/window.rs +++ b/komorebi/src/window.rs @@ -243,7 +243,17 @@ impl Window { } // This isn't really needed when the above command works as expected via AHK - WindowsApi::set_focus(self.hwnd()) + match WindowsApi::set_focus(self.hwnd()) { + Ok(_) => {} + Err(error) => { + tracing::error!( + "could not set focus, but continuing execution of focus(): {}", + error + ); + } + }; + + Ok(()) } #[allow(dead_code)]