[decorations] Schedule repaint for renderer on AbstractClient

We need to search in AbstractClient instead of just Client.
This commit is contained in:
Martin Gräßlin 2015-12-04 09:54:10 +01:00
parent 0bf2b1de0f
commit 60b09586ef

View file

@ -218,7 +218,7 @@ std::unique_ptr<KDecoration2::DecorationSettingsPrivate> DecorationBridge::setti
void DecorationBridge::update(KDecoration2::Decoration *decoration, const QRect &geometry)
{
// TODO: remove check once all compositors implement it
if (Client *c = Workspace::self()->findClient([decoration] (const Client *client) { return client->decoration() == decoration; })) {
if (AbstractClient *c = Workspace::self()->findAbstractClient([decoration] (const AbstractClient *client) { return client->decoration() == decoration; })) {
if (Renderer *renderer = c->decoratedClient()->renderer()) {
renderer->schedule(geometry);
}