From 60bc83d407e338c4ac67d46879efa7958952d91d Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Fri, 7 Feb 2025 11:59:56 +0000 Subject: [PATCH] fix(wm): increase monitor_reconciliator channel bound When there is a monitor disconnect/reconnect, usually it produces multiple monitor events along with it, like the monitor resolution change and the work area change. With the bound set to 1 it would sometimes result in missed events. This commit increases the bound to 20 to prevent this from happening. --- komorebi/src/monitor_reconciliator/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/monitor_reconciliator/mod.rs b/komorebi/src/monitor_reconciliator/mod.rs index fff01d1d..2f28f141 100644 --- a/komorebi/src/monitor_reconciliator/mod.rs +++ b/komorebi/src/monitor_reconciliator/mod.rs @@ -48,7 +48,7 @@ static CHANNEL: OnceLock<(Sender, Receiver>> = OnceLock::new(); pub fn channel() -> &'static (Sender, Receiver) { - CHANNEL.get_or_init(|| crossbeam_channel::bounded(1)) + CHANNEL.get_or_init(|| crossbeam_channel::bounded(20)) } fn event_tx() -> Sender {