1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

disable KWin::reconfigure under wayland

--as long as KWin is not able to be reconfigured under
wayland without issues this codepath is blocked
This commit is contained in:
Michail Vourlakos 2021-04-09 13:52:56 +03:00
parent 961ae8f431
commit 230738f4ae
2 changed files with 19 additions and 0 deletions

View File

@ -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 {

View File

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