mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 22:12:53 +01:00
feat(wm): add alt-tab heuristics to wsr
This commit adds some rough heuristics to workspace_reconciliator which should help with having the correct window focused after reconciliation in the majority of, but probably not all, cases. EnumWindows generally returns HWNDs according to z order, and a window selected by alt-tab will almost always be put on the top of the z order. Before sending a workspace_reconciliator::Notification, we store this HWND along with an Instant and an AtomicBool telling us that we have a candidate to focus after the workspace switch.
This commit is contained in:
2
justfile
2
justfile
@@ -28,7 +28,6 @@ install:
|
||||
just install-target komorebi
|
||||
|
||||
run:
|
||||
just install-target komorebic
|
||||
cargo +stable run --bin komorebi --locked
|
||||
|
||||
warn $RUST_LOG="warn":
|
||||
@@ -44,7 +43,6 @@ trace $RUST_LOG="trace":
|
||||
just run
|
||||
|
||||
deadlock $RUST_LOG="trace":
|
||||
just install-komorebic
|
||||
cargo +stable run --bin komorebi --locked --features deadlock_detection
|
||||
|
||||
docgen:
|
||||
|
||||
Reference in New Issue
Block a user