mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-21 12:28:40 +02:00
fix(wm): unset all duplicate monitor serial ids
This commit fixes a rare issue, seen exclusively with Acer monitors so far, where two monitors of the same model can have an identical serial number id. If we encounter a system which has two connected monitors with the same serial id number, the serial id number will be forcefully unset and blacklisted for the rest of the session. In this case, users must fall back to using device_id for options like display_index_preferences. Possibly a little overkill, but since this has been such a headache I'm going to opt for this approach over #1368 for now.
This commit is contained in:
@@ -173,6 +173,8 @@ lazy_static! {
|
||||
matching_strategy: Option::from(MatchingStrategy::Equals),
|
||||
}),
|
||||
]));
|
||||
static ref DUPLICATE_MONITOR_SERIAL_IDS: Arc<RwLock<Vec<String>>> =
|
||||
Arc::new(RwLock::new(Vec::new()));
|
||||
static ref SUBSCRIPTION_PIPES: Arc<Mutex<HashMap<String, File>>> =
|
||||
Arc::new(Mutex::new(HashMap::new()));
|
||||
pub static ref SUBSCRIPTION_SOCKETS: Arc<Mutex<HashMap<String, PathBuf>>> =
|
||||
|
||||
Reference in New Issue
Block a user