OSDN Git Service

libs: fallback to ConsoleKit in KDisplayManager::isSwitchable()
authorIvailo Monev <xakepa10@gmail.com>
Mon, 25 Apr 2022 04:13:18 +0000 (07:13 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 25 Apr 2022 04:13:18 +0000 (07:13 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
libs/kworkspace/kdisplaymanager.cpp

index a71ba2a..3cf6293 100644 (file)
@@ -599,7 +599,9 @@ KDisplayManager::isSwitchable()
                     systemdversion = systemdversion.left(dotindex);
                 }
                 // always allowed since 246 and the CanMultiSession property is hidden
-                return (systemdversion.toLongLong() >= 246);
+                if (systemdversion.toLongLong() >= 246) {
+                    return true;
+                }
             }
             CKSeat CKseat(currentSeat);
             if (CKseat.isValid()) {