From 4e4281cf6f6f002b8e75710bd14505b2de81468b Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Tue, 9 Sep 2025 10:24:59 -0700 Subject: [PATCH] Remove explicit enableDriver call when the plugin is initialized --- kwin/src/breezydesktopeffect.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kwin/src/breezydesktopeffect.cpp b/kwin/src/breezydesktopeffect.cpp index d20a1d2..278f15e 100644 --- a/kwin/src/breezydesktopeffect.cpp +++ b/kwin/src/breezydesktopeffect.cpp @@ -148,8 +148,6 @@ BreezyDesktopEffect::BreezyDesktopEffect() m_cursorUpdateTimer->setInterval(16); // ~60Hz m_cursorUpdateTimer->start(); - enableDriver(); - // Register DBus object under KWin's session bus name auto *adaptor = new BreezyDesktopDBusAdaptor(this); const bool dbusOk = QDBusConnection::sessionBus().registerObject( @@ -275,11 +273,11 @@ void BreezyDesktopEffect::deactivate() void BreezyDesktopEffect::enableDriver() { qCCritical(KWIN_XR) << "\t\t\tBreezy - enableDriver"; - QJsonObject obj; - obj.insert(QStringLiteral("disabled"), false); - obj.insert(QStringLiteral("output_mode"), QStringLiteral("external_only")); - obj.insert(QStringLiteral("external_mode"), QStringLiteral("breezy_desktop")); - XRDriverIPC::instance().writeConfig(obj); + QJsonObject obj; + obj.insert(QStringLiteral("disabled"), false); + obj.insert(QStringLiteral("output_mode"), QStringLiteral("external_only")); + obj.insert(QStringLiteral("external_mode"), QStringLiteral("breezy_desktop")); + XRDriverIPC::instance().writeConfig(obj); } void BreezyDesktopEffect::disableDriver()