Display (Linux): report displays of unknown connection state too

Ref: #1301
This commit is contained in:
Carter Li
2024-09-29 10:25:46 +08:00
parent 5381395c54
commit 88097463af
+1 -1
View File
@@ -257,7 +257,7 @@ static const char* drmConnectLibdrm(FFDisplayServerResult* result)
if (!conn)
continue;
if (conn->connection == DRM_MODE_CONNECTED)
if (conn->connection != DRM_MODE_DISCONNECTED)
{
drmModeEncoder* encoder = ffdrmModeGetEncoder(fd, conn->encoder_id);
uint32_t width = 0, height = 0, refreshRate = 0;