effect: Fix EffectWindow::contentsRect()

It should specify the client rect inside the frame.

2556378dfa incorrectly assumed that the
buffer geometry includes the decoration.

BUG: 482294
This commit is contained in:
Vlad Zahorodnii 2024-03-05 13:29:06 +02:00
parent bfd755aee9
commit 8736e44e1a

View file

@ -326,7 +326,7 @@ QString EffectWindow::windowClass() const
QRectF EffectWindow::contentsRect() const
{
return d->m_window->clientGeometry().translated(-d->m_window->bufferGeometry().topLeft());
return d->m_window->clientGeometry().translated(-d->m_window->frameGeometry().topLeft());
}
WindowType EffectWindow::windowType() const