Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.cpp
Show First 20 Lines • Show All 789 Lines • ▼ Show 20 Line(s) | 789 | return ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::Locked || | |||
---|---|---|---|---|---|
790 | ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::AcquiringLock; | 790 | ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::AcquiringLock; | ||
791 | } | 791 | } | ||
792 | 792 | | |||
793 | bool WaylandServer::hasScreenLockerIntegration() const | 793 | bool WaylandServer::hasScreenLockerIntegration() const | ||
794 | { | 794 | { | ||
795 | return !m_initFlags.testFlag(InitalizationFlag::NoLockScreenIntegration); | 795 | return !m_initFlags.testFlag(InitalizationFlag::NoLockScreenIntegration); | ||
796 | } | 796 | } | ||
797 | 797 | | |||
798 | bool WaylandServer::hasGlobalShortcutSupport() const | ||||
799 | { | ||||
800 | return !m_initFlags.testFlag(InitalizationFlag::NoGlobalShortcuts); | ||||
801 | } | ||||
802 | | ||||
798 | void WaylandServer::simulateUserActivity() | 803 | void WaylandServer::simulateUserActivity() | ||
799 | { | 804 | { | ||
800 | if (m_idle) { | 805 | if (m_idle) { | ||
801 | m_idle->simulateUserActivity(); | 806 | m_idle->simulateUserActivity(); | ||
802 | } | 807 | } | ||
803 | } | 808 | } | ||
804 | 809 | | |||
805 | } | 810 | } |