kwin: dropping quirk for the pre-4.8 blur
This commit is contained in:
parent
2d99ef918b
commit
32a3c49630
1 changed files with 1 additions and 12 deletions
13
scene.cpp
13
scene.cpp
|
@ -122,20 +122,9 @@ void Scene::paintScreen(int* mask, QRegion* region)
|
||||||
pdata.mask = *mask;
|
pdata.mask = *mask;
|
||||||
pdata.paint = *region;
|
pdata.paint = *region;
|
||||||
|
|
||||||
// region only includes all workspace-specific repaints but some effect (e.g. blur)
|
|
||||||
// rely on the full damaged area
|
|
||||||
QRegion dirtyArea;
|
|
||||||
foreach (Window * w, stacking_order) { // bottom to top
|
|
||||||
Toplevel* topw = w->window();
|
|
||||||
dirtyArea |= topw->repaints().translated(topw->pos());
|
|
||||||
dirtyArea |= topw->decorationPendingRegion();
|
|
||||||
}
|
|
||||||
pdata.paint |= dirtyArea;
|
|
||||||
|
|
||||||
effects->prePaintScreen(pdata, time_diff);
|
effects->prePaintScreen(pdata, time_diff);
|
||||||
*mask = pdata.mask;
|
*mask = pdata.mask;
|
||||||
// Subtract the dirty region and let finalPaintScreen decide which areas have to be drawn
|
*region = pdata.paint;
|
||||||
*region |= pdata.paint - dirtyArea;
|
|
||||||
|
|
||||||
if (*mask & (PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS)) {
|
if (*mask & (PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS)) {
|
||||||
// Region painting is not possible with transformations,
|
// Region painting is not possible with transformations,
|
||||||
|
|
Loading…
Reference in a new issue