[Feature Request]: Set Preview Screen using Monitor Name
Feature description
Hi, I have an issue with the OBS Notifier showing up notifications in the incorrect monitor after a restart sometimes. So the Screen remains as DISPLAY2 after restart, but it nows starts on my secondary screen instead of my main screen.
Implementation Ideas
Below monitor information is genereated through "ControlMyMonitor.exe" software: Monitor Device Name: "\.\DISPLAY1\Monitor0" Monitor Name: "XV272U" Short Monitor ID: "ACR06C1"
I have 2 ideas in mind:
- Use the Monitor Name or Short Monitor ID which I believe they should be unqiue and won't change unless you get a new monitor.
- I think people usually want to have this notification on their primary monitor, so perhaps detecting which Monitor is set as "Primary" in windows setting, and display on this monitor by default unless being told otherwise in the application setting.
Just an FYI, I'm only throwing ideas out there—I'm not requesting a deadline or requiring you to implement them.
Hi, I have an issue with the OBS Notifier showing up notifications in the incorrect monitor after a restart sometimes. So the Screen remains as DISPLAY2 after restart, but it nows starts on my secondary screen instead of my main screen.
It's hard for me to say what the problem is. After restart, does this mean restarting the computer or the program?
\\.\DISPLAY* as far as I understand, this is the system identifier of the displays, if it changes, it usually happens when new screens are connected (or if they are plugged into another connector) or immediately after reinstalling the drivers.
- Use the Monitor Name or Short Monitor ID which I believe they should be unqiue and won't change unless you get a new monitor.
At the moment, I'm using screen data from WinForms, in which I can get the identifier \\.\DISPLAY*, IsPrimary, and that's it.
- I think people usually want to have this notification on their primary monitor, so perhaps detecting which Monitor is set as "Primary" in windows setting, and display on this monitor by default unless being told otherwise in the application setting.
The Primary screen is used by default. But then its ID is saved and the notification can move to another screen only if the ID moves to another screen.
https://github.com/DmitriySalnikov/OBSNotifier/blob/9e87c251a58aa567ba67493bac2b51facf05228c/OBSNotifier/App.xaml.cs#L144-L148
Just an FYI, I'm only throwing ideas out there—I'm not requesting a deadline or requiring you to implement them.
No problem, I have a long list of things that I would like to implement.
Hi, I have an issue with the OBS Notifier showing up notifications in the incorrect monitor after a restart sometimes. So the Screen remains as DISPLAY2 after restart, but it nows starts on my secondary screen instead of my main screen.
It's hard for me to say what the problem is. After
restart, does this mean restarting the computer or the program?\\.\DISPLAY*as far as I understand, this is the system identifier of the displays, if it changes, it usually happens when new screens are connected (or if they are plugged into another connector) or immediately after reinstalling the drivers.
- Use the Monitor Name or Short Monitor ID which I believe they should be unqiue and won't change unless you get a new monitor.
At the moment, I'm using screen data from WinForms, in which I can get the identifier
\\.\DISPLAY*,IsPrimary, and that's it.
- I think people usually want to have this notification on their primary monitor, so perhaps detecting which Monitor is set as "Primary" in windows setting, and display on this monitor by default unless being told otherwise in the application setting.
The Primary screen is used by default. But then its ID is saved and the notification can move to another screen only if the ID moves to another screen.
OBSNotifier/OBSNotifier/App.xaml.cs
Lines 144 to 148 in 9e87c25 if (Settings.Instance.FirstRun) { Settings.Instance.FirstRun = false; Settings.Instance.DisplayID = WPFScreens.Primary.DeviceName; Settings.Instance.Save();
Just an FYI, I'm only throwing ideas out there—I'm not requesting a deadline or requiring you to implement them.
No problem, I have a long list of things that I would like to implement.
Interesting, I think I realize what caused it. This problem will probably only happen to a few users like myself, so I think the problem is not because of a restart, but I have my monitors hook up to KVM switch, so I can switch between work laptop and my personal PC. This probably reset the display ID.