Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/server.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
88 | 88 | | |||
89 | #include <QX11Info> | 89 | #include <QX11Info> | ||
90 | #include <krandom.h> | 90 | #include <krandom.h> | ||
91 | #include <klauncher_interface.h> | 91 | #include <klauncher_interface.h> | ||
92 | #include <startup_interface.h> | 92 | #include <startup_interface.h> | ||
93 | #include <qstandardpaths.h> | 93 | #include <qstandardpaths.h> | ||
94 | 94 | | |||
95 | #include "kscreenlocker_interface.h" | 95 | #include "kscreenlocker_interface.h" | ||
96 | #include "kwinsession_interface.h" | ||||
96 | 97 | | |||
97 | KSMServer* the_server = nullptr; | 98 | KSMServer* the_server = nullptr; | ||
98 | 99 | | |||
99 | KSMServer* KSMServer::self() | 100 | KSMServer* KSMServer::self() | ||
100 | { | 101 | { | ||
101 | return the_server; | 102 | return the_server; | ||
102 | } | 103 | } | ||
103 | 104 | | |||
▲ Show 20 Lines • Show All 490 Lines • ▼ Show 20 Line(s) | |||||
594 | 595 | | |||
595 | #ifdef HAVE__ICETRANSNOLISTEN | 596 | #ifdef HAVE__ICETRANSNOLISTEN | ||
596 | extern "C" int _IceTransNoListen(const char * protocol); | 597 | extern "C" int _IceTransNoListen(const char * protocol); | ||
597 | #endif | 598 | #endif | ||
598 | 599 | | |||
599 | KSMServer::KSMServer( const QString& windowManager, InitFlags flags ) | 600 | KSMServer::KSMServer( const QString& windowManager, InitFlags flags ) | ||
600 | : wmProcess( nullptr ) | 601 | : wmProcess( nullptr ) | ||
601 | , sessionGroup( QStringLiteral( "" ) ) | 602 | , sessionGroup( QStringLiteral( "" ) ) | ||
603 | , m_kwinInterface(new OrgKdeKWinSessionInterface(QStringLiteral("org.kde.KWin"), QStringLiteral("/Session"), QDBusConnection::sessionBus(), this)) | ||||
602 | , sockets{ -1, -1 } | 604 | , sockets{ -1, -1 } | ||
603 | { | 605 | { | ||
604 | if (!flags.testFlag(InitFlag::NoLockScreen)) { | 606 | if (!flags.testFlag(InitFlag::NoLockScreen)) { | ||
605 | ScreenLocker::KSldApp::self()->initialize(); | 607 | ScreenLocker::KSldApp::self()->initialize(); | ||
606 | if (flags.testFlag(InitFlag::ImmediateLockScreen)) { | 608 | if (flags.testFlag(InitFlag::ImmediateLockScreen)) { | ||
607 | ScreenLocker::KSldApp::self()->lock(ScreenLocker::EstablishLock::Immediate); | 609 | ScreenLocker::KSldApp::self()->lock(ScreenLocker::EstablishLock::Immediate); | ||
608 | } | 610 | } | ||
609 | } | 611 | } | ||
▲ Show 20 Lines • Show All 638 Lines • Show Last 20 Lines |