Mark Window as damaged when decoration or shadow changes
Enforms thumbnails, screencasts and effects of these changes and that the window needs repainting. BUG:464417 FIXED-IN:5.27.1 (cherry picked from commit 264a19247bc081dfb4701509b1920a539e0b65bc)icc-effect-5.26.90
parent
e6c8b2daad
commit
02d642faf6
|
@ -16,6 +16,8 @@
|
|||
#include "window.h"
|
||||
#include "workspace.h"
|
||||
|
||||
#include <KDecoration2/Decoration>
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
||||
|
@ -216,6 +218,7 @@ void WindowItem::updateShadowItem()
|
|||
} else if (m_surfaceItem) {
|
||||
m_shadowItem->stackBefore(m_surfaceItem.get());
|
||||
}
|
||||
markDamaged();
|
||||
} else {
|
||||
m_shadowItem.reset();
|
||||
}
|
||||
|
@ -233,6 +236,8 @@ void WindowItem::updateDecorationItem()
|
|||
} else if (m_surfaceItem) {
|
||||
m_decorationItem->stackBefore(m_surfaceItem.get());
|
||||
}
|
||||
connect(m_window->decoration(), &KDecoration2::Decoration::damaged, this, &WindowItem::markDamaged);
|
||||
markDamaged();
|
||||
} else {
|
||||
m_decorationItem.reset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue