We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8855fb7 commit e605448Copy full SHA for e605448
src/main.rs
@@ -291,12 +291,12 @@ pub fn listen_for_movements(hwnds: Option<PathBuf>) {
291
}
292
293
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
-
299
if should_raise {
+ if should_cache_eligibility {
+ // ensure we cache eligibility to avoid syscalls and tests next time
+ eligibility_cache.insert(cursor_pos_hwnd, true);
+ }
+
300
// get the top-level window under the cursor
301
if let Ok(cursor_pos_top_level_hwnd) =
302
get_ancestor(cursor_pos_hwnd, GA_ROOT)
0 commit comments