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

BUG: 477242
This commit is contained in:
Andreas Gattringer 2023-11-20 11:09:54 +01:00 committed by Xaver Hugl
parent 96af98609e
commit 5651bae432

View file

@ -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();
}