]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/RootDomainUserClient.cpp
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / iokit / Kernel / RootDomainUserClient.cpp
index 632b97ae550e5aee6b065414446a36511a14831c..3fce5d5b0879515a88e228a21dcbe6339b58ec10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998-2012 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1998-2020 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  *
@@ -328,7 +328,8 @@ RootDomainUserClient::externalMethod(
                break;
 
        case kPMSetClamshellSleepState:
-               fOwner->setDisableClamShellSleep(arguments->scalarInput[0] ? true : false);
+               fOwner->setClamShellSleepDisable(arguments->scalarInput[0] ? true : false,
+                   IOPMrootDomain::kClamshellSleepDisablePowerd);
                ret = kIOReturnSuccess;
                break;