Skip to content

Commit

Permalink
drm/atomic: Always include enabled connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Jan 13, 2025
1 parent 1ede934 commit fcaa9b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/drm/surface/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@ impl AtomicDrmSurface {
let current_conns = current.connectors.clone();
let pending_conns = pending.connectors.clone();
let mut removed = current_conns.difference(&pending_conns);
let mut added = pending_conns.difference(&current_conns);

for conn in removed.clone() {
if let Ok(info) = self.fd.get_connector(*conn, false) {
Expand All @@ -760,7 +759,7 @@ impl AtomicDrmSurface {
}
}

for conn in added.clone() {
for conn in &pending_conns {
if let Ok(info) = self.fd.get_connector(*conn, false) {
info!("Adding connector: {:?}", info.interface());
} else {
Expand All @@ -782,7 +781,7 @@ impl AtomicDrmSurface {
self.crtc,
Some(pending.blob),
pending.vrr,
&mut added,
&mut pending_conns.iter(),
&mut removed,
&*planes,
)?;
Expand Down

0 comments on commit fcaa9b6

Please sign in to comment.