Merge branch 'compositor-suspend' of github.com:Boria138/PortWINE into Boria138-compositor-suspend

This commit is contained in:
Mikhail Tergoev
2025-07-17 18:55:51 +03:00

View File

@ -4400,7 +4400,10 @@ start_portwine () {
&& ! check_gamescope_session && ! check_gamescope_session
then then
if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then
kde_version=$(plasmashell --version 2>/dev/null | grep -oE '[0-9]+' | head -1)
if [[ -n "$kde_version" && "$kde_version" -lt 6 ]]; then
qdbus org.kde.KWin /Compositor suspend qdbus org.kde.KWin /Compositor suspend
fi
elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then
gsettings set org.mate.Marco.general compositing-manager false gsettings set org.mate.Marco.general compositing-manager false
elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then