mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
[PR #793] [MERGED] Virtual displays now use serial number as preferences ID appendix. #1205
Labels
No labels
Status: Abandoned
arm64
beta
beta
bug
done
duplicate
enhancement
feedback needed from reporter
in progress
invalid
investigating
known Issue
monitor Issue
pull-request
translation
unable to reproduce
unreleased
x86
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/MonitorControl#1205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MonitorControl/MonitorControl/pull/793
Author: @waydabber
Created: 11/16/2021
Status: ✅ Merged
Merged: 11/16/2021
Merged by: @waydabber
Base:
master← Head:fixes📝 Commits (7)
8c1be5eFixing Samsung 28E850 treated as a dummy.a6e0402Removed OSD lock popup alltogether23ec024Fix build number conflict45c769dMerge remote-tracking branch 'refs/remotes/origin/fixes'635b998Virtual displays (Sidecar, DisplayLink etc) now use serial number instead of CGDirectDisplayID for preferences storage appendix.a2b27f8Merge remote-tracking branch 'refs/remotes/origin/fixes'c81c477Made display pref id creation look nice.📊 Changes
6 files changed (+22 additions, -19 deletions)
View changed files
📝
MonitorControl/Info.plist(+1 -1)📝
MonitorControl/Model/AppleDisplay.swift(+2 -2)📝
MonitorControl/Model/Display.swift(+13 -11)📝
MonitorControl/Model/OtherDisplay.swift(+2 -2)📝
MonitorControl/Support/DisplayManager.swift(+3 -2)📝
MonitorControlHelper/Info.plist(+1 -1)📄 Description
There was an issue regarding virtual displays (DisplayLink, Sidecar etc) - the app uses CGDirectDisplayID as a preference ID suffix alongside the display name and vendor/model number. Since on every connect this id is changing for these displays, MonitorControl could not track preferences associated to these displays (+ the preferences store was polluted with dead items as well). This is now fixed, we now use the system generated, permanent serial number as suffix for virtual displays. For real displays we continue to use CGDirectDisplayID as the serial number is often the same for identical displays which causes issues in multi-display configs with similar physical displays.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.