General: Remove another awk call

This commit is contained in:
Michael Straube 2017-07-14 15:29:53 +02:00
parent cb2ebbf661
commit 7a90486916
1 changed files with 2 additions and 1 deletions

View File

@ -2402,7 +2402,8 @@ get_term_size() {
current_window="$(xdpyinfo | grep -E -o "focus:.*0x[0-9a-f]+")"
current_window="${current_window/*window }"
elif type -p xprop >/dev/null 2>&1; then
current_window="$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')"
current_window="$(xprop -root _NET_ACTIVE_WINDOW)"
current_window="${current_window##* }"
fi
# If the ID was found get the window size.