disable KWin::reconfigure under wayland

--as long as KWin is not able to be reconfigured under
wayland without issues this codepath is blocked
work/spdx
Michail Vourlakos 4 years ago
parent 961ae8f431
commit 230738f4ae

@ -972,6 +972,12 @@ void Synchronizer::unloadLayouts(const QStringList &layoutNames)
void Synchronizer::updateKWinDisabledBorders()
{
if (KWindowSystem::isPlatformWayland()) {
// BUG: https://bugs.kde.org/show_bug.cgi?id=428202
// KWin::reconfigure() function blocks/freezes Latte under wayland
return;
}
if (!m_manager->corona()->universalSettings()->canDisableBorders()) {
m_manager->corona()->universalSettings()->kwin_setDisabledMaximizedBorders(false);
} else {

@ -35,6 +35,7 @@
// KDE
#include <KActivities/Consumer>
#include <KDirWatch>
#include <KWindowSystem>
#define KWINMETAFORWARDTOLATTESTRING "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
#define KWINMETAFORWARDTOPLASMASTRING "org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu"
@ -339,6 +340,12 @@ void UniversalSettings::kwin_forwardMetaToLatte(bool forward)
return;
}
if (KWindowSystem::isPlatformWayland()) {
// BUG: https://bugs.kde.org/show_bug.cgi?id=428202
// KWin::reconfigure() function blocks/freezes Latte under wayland
return;
}
QString forwardStr = (forward ? KWINMETAFORWARDTOLATTESTRING : KWINMETAFORWARDTOPLASMASTRING);
m_kwinrcModifierOnlyShortcutsGroup.writeEntry("Meta", forwardStr);
m_kwinrcModifierOnlyShortcutsGroup.sync();
@ -356,6 +363,12 @@ void UniversalSettings::kwin_setDisabledMaximizedBorders(bool disable)
return;
}
if (KWindowSystem::isPlatformWayland()) {
// BUG: https://bugs.kde.org/show_bug.cgi?id=428202
// KWin::reconfigure() function blocks/freezes Latte under wayland
return;
}
m_kwinrcWindowsGroup.writeEntry("BorderlessMaximizedWindows", disable);
m_kwinrcWindowsGroup.sync();

Loading…
Cancel
Save