Function ensure_client_z_order_in_sync_with_daemon
fn ensure_client_z_order_in_sync_with_daemon<W: WindowsApi + Send + Sync + 'static>(
windows_api: Arc<W>,
clients: Arc<Mutex<Vec<Client>>>,
)Expand description
Spawns a background thread that ensures the z-order of all client windows is in sync with the daemon window. I.e. if the daemon window is focussed, all clients should be moved to the foreground.
ยงArguments
windows_api- Arc-wrapped Windows API implementation for thread-safe accessclients- A thread safe mapping from the number a client console window was launched at in relation to the other client windows and the clients console window handle. The mapping must be thread safe to allow it to be modified by the main thread while we periodically read from it in the background thread.