Clear thumbnails for deleted windows
REVIEW: 102445
This commit is contained in:
parent
dd05eebbe2
commit
60c73200f6
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue