Experimental fix for issue #42.

This commit is contained in:
Brett Bohnenkamper
2013-03-03 13:45:30 -06:00
parent 73b1c8f41e
commit 6259edefda

View File

@@ -972,6 +972,8 @@ detectwm () {
WM=$(xprop -root _NET_SUPPORTING_WM_CHECK)
if [[ "$WM" =~ "not found" ]]; then
WM="Not Found"
elif [[ "$WM" =~ "invalid window id format" ]]; then
WM="Not Found"
else
WM=${WM//* }
WM=$(xprop -id ${WM} 8s _NET_WM_NAME)