improve detection for monitor state change.
This commit is contained in:
@@ -35,6 +35,10 @@ public class MultipleMonitorCreator : MonoBehaviour
|
|||||||
if (removeIfUnsupported) {
|
if (removeIfUnsupported) {
|
||||||
RemoveUnsupportedDisplayAfterRemoveTimer();
|
RemoveUnsupportedDisplayAfterRemoveTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uDesktopDuplication.Manager.monitorCount != monitors.Count) {
|
||||||
|
Recreate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnEnable()
|
void OnEnable()
|
||||||
|
|||||||
Binary file not shown.
@@ -68,7 +68,7 @@ void MonitorManager::RequireReinitilization()
|
|||||||
|
|
||||||
void MonitorManager::Reinitialize()
|
void MonitorManager::Reinitialize()
|
||||||
{
|
{
|
||||||
Debug::Log("Reinitialize()");
|
Debug::Log("MonitorManager::Reinitialize()");
|
||||||
Initialize();
|
Initialize();
|
||||||
SendMessageToUnity(Message::Reinitialized);
|
SendMessageToUnity(Message::Reinitialized);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user