kwin: fix an issue in paintSimpleScreen

Damaged windows for which painting is disabled should not be considered.
icc-effect-5.14.5
Philipp Knechtges 2011-07-14 14:17:33 +02:00
parent f0492f9b02
commit a145fa564c
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,6 @@ void Scene::paintSimpleScreen(int orig_mask, QRegion region)
data.paint = region;
data.paint |= topw->repaints().translated(topw->pos());
data.paint |= topw->decorationPendingRegion();
dirtyArea |= data.paint;
// Reset the repaint_region.
// This has to be done here because many effects schedule a repaint for
@ -289,6 +288,7 @@ void Scene::paintSimpleScreen(int orig_mask, QRegion region)
w->suspendUnredirect(true);
continue;
}
dirtyArea |= data.paint;
// Schedule the window for painting
phase2data[w] = Phase2Data(w, data.paint, data.clip, data.mask, data.quads);
// no transformations, but translucency requires window pixmap