Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Context not available. | |||||
357 | mask |= PAINT_WINDOW_LANCZOS; | 357 | mask |= PAINT_WINDOW_LANCZOS; | ||
---|---|---|---|---|---|
358 | // Apply opacity and brightness | 358 | // Apply opacity and brightness | ||
359 | data.multiplyOpacity(winData->opacity); | 359 | data.multiplyOpacity(winData->opacity); | ||
360 | data.multiplyBrightness(interpolate(0.40, 1.0, winData->highlight)); | 360 | if (w->isDesktop()) { | ||
361 | data.multiplyBrightness(0.6); | ||||
362 | } | ||||
361 | 363 | | |||
362 | if (m_motionManager.isManaging(w)) { | 364 | if (m_motionManager.isManaging(w)) { | ||
363 | if (w->isDesktop()) { | 365 | if (w->isDesktop()) { | ||
Context not available. | |||||
427 | } | 429 | } | ||
428 | if (m_showCaptions) { | 430 | if (m_showCaptions) { | ||
429 | QPoint point(rect.x() + rect.width() / 2, | 431 | QPoint point(rect.x() + rect.width() / 2, | ||
430 | rect.y() + rect.height() / 2); | 432 | rect.y() + rect.height() + 5); | ||
431 | winData->textFrame->setPosition(point); | 433 | winData->textFrame->setPosition(point); | ||
432 | if (effects->compositingType() == KWin::OpenGL2Compositing && data.shader) { | 434 | if (effects->compositingType() == KWin::OpenGL2Compositing && data.shader) { | ||
433 | const float a = 0.9 * data.opacity() * m_decalOpacity * 0.75; | 435 | const float a = 0.9 * data.opacity() * m_decalOpacity * 0.75; | ||
Context not available. | |||||
1137 | 1139 | | |||
1138 | // Following code is taken from Kompose 0.5.4, src/komposelayout.cpp | 1140 | // Following code is taken from Kompose 0.5.4, src/komposelayout.cpp | ||
1139 | 1141 | | |||
1140 | int spacing = 10; | 1142 | int spacing = 35; | ||
1141 | int rows, columns; | 1143 | int rows, columns; | ||
1142 | double parentRatio = availRect.width() / (double)availRect.height(); | 1144 | double parentRatio = availRect.width() / (double)availRect.height(); | ||
1143 | // Use more columns than rows when parent's width > parent's height | 1145 | // Use more columns than rows when parent's width > parent's height | ||
Context not available. |