diff --git a/komorebi/src/transparency_manager.rs b/komorebi/src/transparency_manager.rs index 232484069..f5aed700e 100644 --- a/komorebi/src/transparency_manager.rs +++ b/komorebi/src/transparency_manager.rs @@ -111,13 +111,11 @@ pub fn handle_notifications(wm: Arc>) -> color_eyre::Result "failed to make monocle window {hwnd} opaque: {error}" ) } - } else { - if let Err(error) = window.transparent() { - let hwnd = window.hwnd; - tracing::error!( - "failed to make monocle window {hwnd} transparent: {error}" - ) - } + } else if let Err(error) = window.transparent() { + let hwnd = window.hwnd; + tracing::error!( + "failed to make monocle window {hwnd} transparent: {error}" + ) } } diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index 547528634..45bce2950 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -267,7 +267,8 @@ impl Workspace { }, ); - if self.containers().len() <= window_based_work_area_offset_limit as usize + if (self.containers().len() <= window_based_work_area_offset_limit as usize + || self.monocle_container().is_some() && window_based_work_area_offset_limit > 0) && self.apply_window_based_work_area_offset { adjusted_work_area = window_based_work_area_offset.map_or_else(