From 879834451130bb0723460a1b62de07a815894ea7 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 28 Feb 2024 09:20:09 +0800 Subject: [PATCH] fix: hide small windows (#90) --- src/utils/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/window.rs b/src/utils/window.rs index bf0d373..1ad4cba 100644 --- a/src/utils/window.rs +++ b/src/utils/window.rs @@ -53,7 +53,7 @@ pub fn is_cloaked_window(hwnd: HWND) -> bool { pub fn is_small_window(hwnd: HWND) -> bool { let (width, height) = get_window_size(hwnd); - width + height < 250 + width < 120 || height < 90 } pub fn get_window_size(hwnd: HWND) -> (i32, i32) {