Skip to content

Commit

Permalink
fix: hide small windows (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Feb 28, 2024
1 parent 03dfd6e commit 8798344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8798344

Please sign in to comment.