Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Line(s) | 173 | #endif | |||
---|---|---|---|---|---|
189 | 189 | | |||
190 | connect(m_sessionManager, &SessionManager::prepareSessionSaveRequested, this, [this](const QString &name) { | 190 | connect(m_sessionManager, &SessionManager::prepareSessionSaveRequested, this, [this](const QString &name) { | ||
191 | storeSession(name, SMSavePhase0); | 191 | storeSession(name, SMSavePhase0); | ||
192 | }); | 192 | }); | ||
193 | connect(m_sessionManager, &SessionManager::finishSessionSaveRequested, this, [this](const QString &name) { | 193 | connect(m_sessionManager, &SessionManager::finishSessionSaveRequested, this, [this](const QString &name) { | ||
194 | storeSession(name, SMSavePhase2); | 194 | storeSession(name, SMSavePhase2); | ||
195 | }); | 195 | }); | ||
196 | 196 | | |||
197 | if (!qEnvironmentVariableIntValue("KWIN_DISABLE_SHORTCUTS")) { | ||||
197 | new DBusInterface(this); | 198 | new DBusInterface(this); | ||
199 | } | ||||
198 | 200 | | |||
199 | Outline::create(this); | 201 | Outline::create(this); | ||
200 | 202 | | |||
203 | if (!qEnvironmentVariableIntValue("KWIN_DISABLE_SHORTCUTS")) { | ||||
201 | initShortcuts(); | 204 | initShortcuts(); | ||
205 | } | ||||
202 | 206 | | |||
203 | init(); | 207 | init(); | ||
204 | } | 208 | } | ||
205 | 209 | | |||
206 | void Workspace::init() | 210 | void Workspace::init() | ||
207 | { | 211 | { | ||
208 | KSharedConfigPtr config = kwinApp()->config(); | 212 | KSharedConfigPtr config = kwinApp()->config(); | ||
209 | Screens *screens = Screens::self(); | 213 | Screens *screens = Screens::self(); | ||
▲ Show 20 Lines • Show All 2578 Lines • Show Last 20 Lines |