+ OWNER="$OWNER $OWNER_NAME"
+ else
+ PARENT_ID=$(xwininfo -children -id $OWNER_ID | sed -n -e '/Parent window id:/s/.*window id: \([^ ]*\) .*$/\1/p')
+ if [ -n "$PARENT_ID" ];
+ then
+ OWNER="$OWNER children of $PARENT_ID"
+
+ PARENT_NAME=$(xprop -id $PARENT_ID | grep "^WM_NAME" | cut -d ' ' -f 3-)
+ if [ -n "$PARENT_NAME" ];
+ then
+ OWNER="$OWNER $PARENT_NAME"
+ fi
+ fi