Remove explicit enableDriver call when the plugin is initialized

This commit is contained in:
wheaney 2025-09-09 10:24:59 -07:00
parent f2b0913a4e
commit 4e4281cf6f
1 changed files with 5 additions and 7 deletions

View File

@ -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()