plugins/shakecursor: Fix blocking direct scanout

Effects are active by default.
This commit is contained in:
Vlad Zahorodnii 2024-03-14 02:41:56 +02:00
parent 9a0471a6d5
commit 9ee6b57d69
2 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,11 @@ bool ShakeCursorEffect::supported()
return effects->isOpenGLCompositing(); return effects->isOpenGLCompositing();
} }
bool ShakeCursorEffect::isActive() const
{
return m_currentMagnification != 1.0;
}
void ShakeCursorEffect::reconfigure(ReconfigureFlags flags) void ShakeCursorEffect::reconfigure(ReconfigureFlags flags)
{ {
ShakeCursorConfig::self()->read(); ShakeCursorConfig::self()->read();

View file

@ -29,6 +29,7 @@ public:
static bool supported(); static bool supported();
bool isActive() const override;
void reconfigure(ReconfigureFlags flags) override; void reconfigure(ReconfigureFlags flags) override;
void pointerEvent(MouseEvent *event) override; void pointerEvent(MouseEvent *event) override;