plugins/shakecursor: Fix blocking direct scanout
Effects are active by default.
This commit is contained in:
parent
9a0471a6d5
commit
9ee6b57d69
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue