From e408410c58cb9be77e683ae7012c226131e0acab Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Wed, 29 Jan 2025 12:37:31 +0000 Subject: [PATCH] fix(wm): handle serial id on load_monitor_information --- komorebi/src/windows_api.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index cefc7119..56e81215 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -296,7 +296,8 @@ impl WindowsApi { let display_index_preferences = DISPLAY_INDEX_PREFERENCES.lock(); for (index, id) in &*display_index_preferences { - if id.eq(m.device_id()) { + if m.serial_number_id().as_ref().is_some_and(|sn| sn == id) || id.eq(m.device_id()) + { index_preference = Option::from(index); } }