mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-10 03:03:41 +02:00
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.
1.5 KiB
1.5 KiB