backends/drm: Don't add GPU if we are already using it
BUG: 477242
This commit is contained in:
parent
96af98609e
commit
5651bae432
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue