From 216154b975780aa685aec5b3d1c6f6bbdae917b8 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 3 Oct 2024 15:56:21 -0700 Subject: [PATCH] fix(border): remove windows accent from monocle on restore --- komorebi/src/window_manager.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/komorebi/src/window_manager.rs b/komorebi/src/window_manager.rs index 8bb0e1b0f..4fefb4a5d 100644 --- a/komorebi/src/window_manager.rs +++ b/komorebi/src/window_manager.rs @@ -968,6 +968,14 @@ impl WindowManager { for monitor in self.monitors_mut() { for workspace in monitor.workspaces_mut() { + if let Some(monocle) = workspace.monocle_container() { + for window in monocle.windows() { + if matches!(border_implementation, BorderImplementation::Windows) { + window.remove_accent()?; + } + } + } + for containers in workspace.containers_mut() { for window in containers.windows_mut() { if no_titlebar.contains(&window.exe()?) {