Disable xprop stuff on Mac OS X
This commit is contained in:
parent
43ae3b6767
commit
896716d2ba
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -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 = }
|
||||||
|
|
Loading…
Reference in a new issue