backends/drm: Don't add GPU if we are already using it

BUG: 477242
wilder/Plasma/6.2
Andreas Gattringer 2 years ago committed by Xaver Hugl
parent 96af98609e
commit 5651bae432
  1. 5
      src/backends/drm/drm_backend.cpp

@ -149,6 +149,11 @@ void DrmBackend::handleUdevEvent()
}
if (device->action() == QStringLiteral("add")) {
DrmGpu *gpu = findGpu(device->devNum());
if (gpu) {
qCWarning(KWIN_DRM) << "Received unexpected add udev event for:" << device->devNode();
continue;
}
if (addGpu(device->devNode())) {
updateOutputs();
}

Loading…
Cancel
Save