From f659deb5e3b4322ffeba68acf043af541bf4987a Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 3 Nov 2023 09:23:09 -0700 Subject: [PATCH] fix(wm): correct border overflow handling logic This commit fixes a regression introduced in the regex rule matching refactor. Invisible borders should be removed from applications that are not identified as border overflow applications, not vice versa. This is because applications that are overflowing their borders effectively erase the invisible borders, while applications that are not overflowing their borders leave the system's invisible borders visibility intact. It is this latter group that we should be targeting with the should_remove_border variable. --- komorebi/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/window.rs b/komorebi/src/window.rs index b08760efe..601ff6e86 100644 --- a/komorebi/src/window.rs +++ b/komorebi/src/window.rs @@ -138,7 +138,7 @@ impl Window { let class = &self.class()?; let exe_name = &self.exe()?; - let should_remove_border = should_act( + let should_remove_border = !should_act( title, exe_name, class,