Commit 1faa50e6 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Kurt Hindenburg
Browse files

don't set blur unless asked to, it is slow

parent d1a90cf3
...@@ -839,6 +839,12 @@ void MainWindow::setBlur(bool blur) ...@@ -839,6 +839,12 @@ void MainWindow::setBlur(bool blur)
return; return;
} }
// Saves 70-100ms when starting
if (blur == _blurEnabled) {
return;
}
_blurEnabled = blur;
if (!_pluggedController->isKonsolePart()) { if (!_pluggedController->isKonsolePart()) {
KWindowEffects::enableBlurBehind(winId(), blur); KWindowEffects::enableBlurBehind(winId(), blur);
} }
......
...@@ -199,6 +199,7 @@ private: ...@@ -199,6 +199,7 @@ private:
bool _menuBarInitialVisibility; bool _menuBarInitialVisibility;
bool _menuBarInitialVisibilityApplied; bool _menuBarInitialVisibilityApplied;
bool _blurEnabled = false;
}; };
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment