Commit 95223a6a authored by Michael Straube's avatar Michael Straube

wm: Detect Mutter on GNOME Wayland

parent 231c8fb2
...@@ -1646,6 +1646,7 @@ get_wm() { ...@@ -1646,6 +1646,7 @@ get_wm() {
-e clayland \ -e clayland \
-e dwc \ -e dwc \
-e fireplace \ -e fireplace \
-e gnome-shell \
-e greenfield \ -e greenfield \
-e grefsen \ -e grefsen \
-e kwin \ -e kwin \
...@@ -1678,10 +1679,6 @@ get_wm() { ...@@ -1678,10 +1679,6 @@ get_wm() {
wm=${wm/\"*} wm=${wm/\"*}
} }
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *"GNOME Shell"* ]] && wm=Mutter
# Fallback for non-EWMH WMs. # Fallback for non-EWMH WMs.
[[ $wm ]] || [[ $wm ]] ||
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o \ wm=$(ps "${ps_flags[@]}" | grep -m 1 -o \
...@@ -1741,6 +1738,10 @@ get_wm() { ...@@ -1741,6 +1738,10 @@ get_wm() {
esac esac
fi fi
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *GNOME*Shell* ]] && wm=Mutter
wm_run=1 wm_run=1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment