fix(wm): handle serial id on load_monitor_information

This commit is contained in:
alex-ds13
2025-01-29 12:37:31 +00:00
committed by LGUG2Z
parent 3ade81444a
commit e408410c58

View File

@@ -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);
}
}