Clear thumbnails for deleted windows

REVIEW: 102445
This commit is contained in:
Martin Gräßlin 2011-09-10 07:56:58 +02:00
parent dd05eebbe2
commit 60c73200f6

View file

@ -119,6 +119,13 @@ void TaskbarThumbnailEffect::slotWindowAdded(EffectWindow* w)
void TaskbarThumbnailEffect::slotWindowDeleted(EffectWindow* w)
{
foreach (EffectWindow *window, thumbnails.uniqueKeys()) {
foreach (const Data &thumb, thumbnails.values(window)) {
if (w == effects->findWindow(thumb.window)) {
window->addRepaint(thumb.rect);
}
}
}
thumbnails.remove(w);
}