Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
Vaxry 2024-10-23 00:45:01 +01:00 committed by GitHub
parent 7c65ecff0a
commit 7aee569cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -527,7 +527,7 @@ void CHypridle::setupDBUS() {
return handleDbusScreensaver(s1, s2, 0, true, object->getCurrentlyProcessedMessage().getSender()); return handleDbusScreensaver(s1, s2, 0, true, object->getCurrentlyProcessedMessage().getSender());
}), }),
sdbus::registerMethod("UnInhibit").implementedAs([object = obj.get()](uint32_t c) { sdbus::registerMethod("UnInhibit").implementedAs([object = obj.get()](uint32_t c) {
handleDbusScreensaver("", "", c, true, object->getCurrentlyProcessedMessage().getSender()); handleDbusScreensaver("", "", c, false, object->getCurrentlyProcessedMessage().getSender());
})) }))
.forInterface(sdbus::InterfaceName{"org.freedesktop.ScreenSaver"}); .forInterface(sdbus::InterfaceName{"org.freedesktop.ScreenSaver"});