Skip to content

Commit fa3654e

Browse files
committed
fix(linux/kms): Use connector type index from KMS instead of self calculation
Instead of calculating the index for each connector_type manually use the connector_type_id index provided by KMS to ensure correct values.
1 parent 25c06d7 commit fa3654e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/platform/linux/kmsgrab.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,12 @@ namespace platf {
655655
}
656656
}
657657

658-
auto index = ++conn_type_count[conn->connector_type];
658+
++conn_type_count[conn->connector_type];
659659

660660
monitors.emplace_back(connector_t {
661661
conn->connector_type,
662662
crtc_id,
663-
index,
663+
conn->connector_type_id,
664664
conn->connector_id,
665665
conn->connection == DRM_MODE_CONNECTED,
666666
});

0 commit comments

Comments
 (0)