Skip to content

Commit

Permalink
kwin: GesturesEffect -> Effect
Browse files Browse the repository at this point in the history
  • Loading branch information
taj-ny committed Oct 16, 2024
1 parent 3829b7e commit d909ef5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/kwin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set(kwin_gestures_SOURCES
config/config.cpp
impl/kwinvirtualinputdevice.cpp
impl/kwinwindowdataprovider.cpp
gestureseffect.cpp
effect.cpp
inputfilter.cpp
main.cpp
)
Expand Down
8 changes: 4 additions & 4 deletions src/kwin/gestureseffect.cpp → src/kwin/effect.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "config/config.h"
#include "gestureseffect.h"
#include "effect.h"
#include "input.h"

GesturesEffect::GesturesEffect()
Effect::Effect()
: m_inputEventFilter(std::make_shared<GestureInputEventFilter>()),
m_virtualInputDevice(std::make_shared<KWinVirtualInputDevice>()),
m_windowDataProvider(std::make_shared<KWinWindowDataProvider>())
Expand All @@ -16,12 +16,12 @@ GesturesEffect::GesturesEffect()
reconfigure(ReconfigureAll);
}

GesturesEffect::~GesturesEffect()
Effect::~Effect()
{
KWin::input()->uninstallInputEventFilter(m_inputEventFilter.get());
}

void GesturesEffect::reconfigure(ReconfigureFlags flags)
void Effect::reconfigure(ReconfigureFlags flags)
{
Q_UNUSED(flags)

Expand Down
6 changes: 3 additions & 3 deletions src/kwin/gestureseffect.h → src/kwin/effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include "impl/kwinwindowdataprovider.h"
#include "inputfilter.h"

class GesturesEffect : public KWin::Effect
class Effect : public KWin::Effect
{
public:
GesturesEffect();
~GesturesEffect() override;
Effect();
~Effect() override;

static bool supported() { return true; };
static bool enabledByDefault() { return false; };
Expand Down
22 changes: 11 additions & 11 deletions src/kwin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "gestureseffect.h"
#include "effect/effect.h"
#include "effect.h"

KWIN_EFFECT_FACTORY_SUPPORTED_ENABLED
(
Effect,
"metadata.json",
return Effect::supported();
,
return Effect::enabledByDefault();
)

namespace KWin
{

KWIN_EFFECT_FACTORY_SUPPORTED_ENABLED(GesturesEffect,
"metadata.json",
return GesturesEffect::supported();
,
return GesturesEffect::enabledByDefault();)

} // namespace KWin

#include "main.moc"

0 comments on commit d909ef5

Please sign in to comment.