1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 22:50:14 +03:00

behaveAsPlasmaPanel for NOCOMPOSITING environment

--all views in NOCOMPOSITING environment should behave
as Plasma Panels in order to interact much better with
windows
This commit is contained in:
Michail Vourlakos 2020-03-06 19:20:45 +02:00
parent ab83bc5b2e
commit ef3a59e836

View File

@ -75,6 +75,12 @@ Item {
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager
property bool backgroundOnlyOnMaximized: plasmoid.configuration.backgroundOnlyOnMaximized
property bool behaveAsPlasmaPanel: {
if (!Latte.WindowSystem.compositingActive) {
//! In NOCOMPOSITING mode VIEWS should behave as real windows and that way
//! we gain also the snapping features from KWin
return true;
}
if (!latteView || !latteView.visibility) {
return false;
}
@ -571,7 +577,7 @@ Item {
}
property real animationsZoomFactor : {
if (!animationsEnabled) {
if (!animationsEnabled || !Latte.WindowSystem.compositingActive) {
return 1;
}