Skip to content

Commit e605448

Browse files
lukeyou05LGUG2Z
authored andcommitted
reverted change with the eligibility cache
1 parent 8855fb7 commit e605448

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ pub fn listen_for_movements(hwnds: Option<PathBuf>) {
291291
}
292292
}
293293

294-
if should_cache_eligibility {
295-
// ensure we cache eligibility to avoid syscalls and tests next time
296-
eligibility_cache.insert(cursor_pos_hwnd, true);
297-
}
298-
299294
if should_raise {
295+
if should_cache_eligibility {
296+
// ensure we cache eligibility to avoid syscalls and tests next time
297+
eligibility_cache.insert(cursor_pos_hwnd, true);
298+
}
299+
300300
// get the top-level window under the cursor
301301
if let Ok(cursor_pos_top_level_hwnd) =
302302
get_ancestor(cursor_pos_hwnd, GA_ROOT)

0 commit comments

Comments
 (0)