Disable xprop stuff on Mac OS X

This commit is contained in:
Dylan 2016-02-21 07:08:50 +11:00
parent 43ae3b6767
commit 896716d2ba

2
fetch
View file

@ -731,7 +731,7 @@ getde () {
# Window Manager {{{ # Window Manager {{{
getwm () { getwm () {
if [ -n "$DISPLAY" ]; then if [ -n "$DISPLAY" ] && [ "$os" != "Mac OS X" ]; then
id="$(xprop -root -notype | \awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" id="$(xprop -root -notype | \awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')"
wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)" wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)"
wm=${wm/*_NET_WM_NAME = } wm=${wm/*_NET_WM_NAME = }