Changeset View
Changeset View
Standalone View
Standalone View
app/mainwindow.cpp
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 100 | #endif | |||
---|---|---|---|---|---|
139 | else | 139 | else | ||
140 | { | 140 | { | ||
141 | showStartupPopup(); | 141 | showStartupPopup(); | ||
142 | if (Settings::pollMouse()) toggleMousePoll(true); | 142 | if (Settings::pollMouse()) toggleMousePoll(true); | ||
143 | } | 143 | } | ||
144 | 144 | | |||
145 | if (Settings::openAfterStart()) | 145 | if (Settings::openAfterStart()) | ||
146 | QMetaObject::invokeMethod(this, "toggleWindowState", Qt::QueuedConnection); | 146 | QMetaObject::invokeMethod(this, "toggleWindowState", Qt::QueuedConnection); | ||
147 | | ||||
147 | } | 148 | } | ||
148 | 149 | | |||
149 | MainWindow::~MainWindow() | 150 | MainWindow::~MainWindow() | ||
150 | { | 151 | { | ||
151 | Settings::self()->save(); | 152 | Settings::self()->save(); | ||
152 | 153 | | |||
153 | delete m_skin; | 154 | delete m_skin; | ||
154 | } | 155 | } | ||
▲ Show 20 Lines • Show All 1150 Lines • ▼ Show 20 Line(s) | |||||
1305 | } | 1306 | } | ||
1306 | 1307 | | |||
1307 | void MainWindow::sharedPreOpenWindow() | 1308 | void MainWindow::sharedPreOpenWindow() | ||
1308 | { | 1309 | { | ||
1309 | applyWindowGeometry(); | 1310 | applyWindowGeometry(); | ||
1310 | 1311 | | |||
1311 | updateUseTranslucency(); | 1312 | updateUseTranslucency(); | ||
1312 | 1313 | | |||
1314 | // Set blur behind window | ||||
1315 | KWindowEffects::enableBlurBehind(winId(), m_sessionStack->isBlurEnabled()); | ||||
1316 | | ||||
1313 | if (Settings::pollMouse()) toggleMousePoll(false); | 1317 | if (Settings::pollMouse()) toggleMousePoll(false); | ||
1314 | } | 1318 | } | ||
1315 | 1319 | | |||
1316 | void MainWindow::sharedAfterOpenWindow() | 1320 | void MainWindow::sharedAfterOpenWindow() | ||
1317 | { | 1321 | { | ||
1318 | if (!Settings::firstRun()) KWindowSystem::forceActiveWindow(winId()); | 1322 | if (!Settings::firstRun()) KWindowSystem::forceActiveWindow(winId()); | ||
1319 | 1323 | | |||
1320 | connect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged, | 1324 | connect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged, | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |