Skip to content
Commit 1502fa9a authored by Xiao YaoBing's avatar Xiao YaoBing Committed by Xaver Hugl
Browse files

prevent the primaryGpu is a usb device in multi-gpu scenes

if usb device is the primaryGpu, the device unplug kwin_wayland exit

`   } else if (device->action() == QStringLiteral("remove")) {
            DrmGpu *gpu = findGpu(device->devNum());
            if (gpu) {
                if (primaryGpu() == gpu) {
                    qCCritical(KWIN_DRM) << "Primary gpu has been removed! Quitting...";
                    QCoreApplication::exit(1);
                    return;
                } else {
                    gpu->setRemoved();
                    updateOutputs();
                }
           }`
parent 6df5b029
Pipeline #438743 passed with stage
in 10 minutes and 19 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment