wm: Detect Mutter on GNOME Wayland

This commit is contained in:
Michael Straube 2019-12-12 10:59:42 +01:00
parent 231c8fb245
commit 95223a6a11
1 changed files with 5 additions and 4 deletions

View File

@ -1646,6 +1646,7 @@ get_wm() {
-e clayland \
-e dwc \
-e fireplace \
-e gnome-shell \
-e greenfield \
-e grefsen \
-e kwin \
@ -1678,10 +1679,6 @@ get_wm() {
wm=${wm/\"*}
}
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *"GNOME Shell"* ]] && wm=Mutter
# Fallback for non-EWMH WMs.
[[ $wm ]] ||
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o \
@ -1741,6 +1738,10 @@ get_wm() {
esac
fi
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *GNOME*Shell* ]] && wm=Mutter
wm_run=1
}