From b9d9b5f5c5e3ced90bd2405d75d30208ebc99266 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 19 Mar 2026 20:05:35 -0400 Subject: [PATCH] shellsettingsplugin: Update kwin screen edges after config change --- components/shellsettingsplugin/kwinsettings.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/shellsettingsplugin/kwinsettings.cpp b/components/shellsettingsplugin/kwinsettings.cpp index 66fae4fa..361a2188 100644 --- a/components/shellsettingsplugin/kwinsettings.cpp +++ b/components/shellsettingsplugin/kwinsettings.cpp @@ -6,6 +6,9 @@ #include "kwinsettings.h" +#include +#include + const QString CONFIG_FILE = QStringLiteral("kwinrc"); const QString OVERLAY_CONFIG_FILE = QStringLiteral("plasma-mobile/kwinrc"); const QString WAYLAND_CONFIG_GROUP = QStringLiteral("Wayland"); @@ -55,5 +58,9 @@ void KWinSettings::setScreenEdgeTouchTarget(int target) auto group = KConfigGroup{m_overlayConfig, SCREEN_EDGES_CONFIG_GROUP}; group.writeEntry("TouchTarget", target, KConfigGroup::Notify); m_overlayConfig->sync(); + + // Notify KWin to reload its config so screen edges are updated live + QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KWin"), QStringLiteral("org.kde.KWin"), QStringLiteral("reloadConfig")); + QDBusConnection::sessionBus().send(message); } }