[effects/slidingpopups] Don't reference previous pixmap

Not needed, it works without it.
This commit is contained in:
Martin Gräßlin 2016-07-15 12:45:10 +02:00
parent d443e54901
commit 6161c50187

View file

@ -115,8 +115,6 @@ void SlidingPopupsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da
w->addRepaintFull(); w->addRepaintFull();
if (w->isDeleted()) { if (w->isDeleted()) {
w->unrefWindow(); w->unrefWindow();
} else {
w->unreferencePreviousWindowPixmap();
} }
} }
} }
@ -321,8 +319,6 @@ void SlidingPopupsEffect::slotWindowClosed(EffectWindow* w)
if (w->isOnCurrentDesktop() && !w->isMinimized() && mWindowsData.contains(w)) { if (w->isOnCurrentDesktop() && !w->isMinimized() && mWindowsData.contains(w)) {
if (w->isDeleted()) { if (w->isDeleted()) {
w->refWindow(); w->refWindow();
} else {
w->referencePreviousWindowPixmap();
} }
auto it = mAppearingWindows.find(w); auto it = mAppearingWindows.find(w);
if (it != mAppearingWindows.end()) { if (it != mAppearingWindows.end()) {