Merge branch 'KDE/4.10'

Conflicts:
	kwin/lanczosfilter.cpp
remotes/origin/Plasma/5.0
Fredrik Höglund 13 years ago
commit 010b3c94de
  1. 5
      effects/blur/blur.cpp
  2. 4
      effects/cube/cubeslide.cpp
  3. 7
      lanczosfilter.cpp

@ -57,10 +57,15 @@ BlurEffect::BlurEffect()
} else { } else {
net_wm_blur_region = 0; net_wm_blur_region = 0;
} }
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged())); connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged()));
// Fetch the blur regions for all windows
foreach (EffectWindow *window, effects->stackingOrder())
updateBlurRegion(window);
} }
BlurEffect::~BlurEffect() BlurEffect::~BlurEffect()

@ -99,12 +99,12 @@ void CubeSlideEffect::paintScreen(int mask, QRegion region, ScreenPaintData& dat
if (dontSlidePanels) { if (dontSlidePanels) {
foreach (EffectWindow * w, panels) { foreach (EffectWindow * w, panels) {
WindowPaintData wData(w); WindowPaintData wData(w);
effects->paintWindow(w, 0, QRegion(w->x(), w->y(), w->width(), w->height()), wData); effects->paintWindow(w, 0, infiniteRegion(), wData);
} }
} }
foreach (EffectWindow * w, stickyWindows) { foreach (EffectWindow * w, stickyWindows) {
WindowPaintData wData(w); WindowPaintData wData(w);
effects->paintWindow(w, 0, QRegion(w->x(), w->y(), w->width(), w->height()), wData); effects->paintWindow(w, 0, infiniteRegion(), wData);
} }
} else } else
effects->paintScreen(mask, region, data); effects->paintScreen(mask, region, data);

@ -216,8 +216,9 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region,
if (hardwareClipping) { if (hardwareClipping) {
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);
} }
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
const qreal rgb = data.brightness() * data.opacity(); const qreal rgb = data.brightness() * data.opacity();
const qreal a = data.opacity(); const qreal a = data.opacity();
@ -346,8 +347,9 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region,
if (hardwareClipping) { if (hardwareClipping) {
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);
} }
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
const qreal rgb = data.brightness() * data.opacity(); const qreal rgb = data.brightness() * data.opacity();
const qreal a = data.opacity(); const qreal a = data.opacity();
@ -361,6 +363,7 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region,
cache->render(region, textureRect, hardwareClipping); cache->render(region, textureRect, hardwareClipping);
glDisable(GL_BLEND); glDisable(GL_BLEND);
if (hardwareClipping) { if (hardwareClipping) {
glDisable(GL_SCISSOR_TEST); glDisable(GL_SCISSOR_TEST);
} }

Loading…
Cancel
Save