From 7ec9bb1dbf27b7cad6165e7d9c7fc5831986631a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 19 Jun 2017 16:27:51 +0200 Subject: [PATCH] dump_selections.sh: use a more robust way to get the window name --- dump_selections.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump_selections.sh b/dump_selections.sh index 1f9da7b..9954a46 100755 --- a/dump_selections.sh +++ b/dump_selections.sh @@ -10,7 +10,7 @@ get_owner() { xwininfo -id $OWNER > /dev/null 2>&1; if [ $? -eq 0 ]; then - OWNER_NAME=$(xprop -id $OWNER WM_NAME | cut -d ' ' -f 3-) + OWNER_NAME=$(xprop -id $OWNER | grep "^WM_NAME" | cut -d ' ' -f 3-) if [ -z "$OWNER_NAME" ]; then OWNER_NAME="$OWNER" -- 2.1.4