tconfig.h: update SETPROP macro according to 238d2273b50c33a1e98ad55750126f05201f911d - surf - [fork] customized build of surf, the suckless webkit browser
 (HTM) git clone git://src.adamsgaard.dk/surf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 02f181784d4670699f160dda4dc373bfb6460c88
 (DIR) parent 98c25adc0481cc4b1712174dfd65d79f1251b4c1
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu,  7 Apr 2022 11:14:59 +0200
       
       config.h: update SETPROP macro according to 238d2273b50c33a1e98ad55750126f05201f911d
       
       Diffstat:
         M config.h                            |      10 ++++++----
       
       1 file changed, 6 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/config.h b/config.h
       t@@ -72,10 +72,12 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
        /* SETPROP(readprop, setprop, prompt)*/
        #define SETPROP(r, s, p) { \
                .v = (const char *[]){ "/bin/sh", "-c", \
       -             "prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \
       -             "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\")\" " \
       -             "| dmenu -p \"$4\" -w $1)\" && xprop -id $1 -f $3 8s -set $3 \"$prop\"", \
       -             "surf-setprop", winid, r, s, p, NULL \
       +             "prop=\"$(printf '%b' \"$(xprop -id $1 "r" " \
       +             "| sed -e 's/^"r"(STRING) = \"\\(.*\\)\"/\\1/' " \
       +             "      -e 's/\\\\\\(.\\)/\\1/g')\" " \
       +             "| dmenu -p '"p"' -w $1)\" " \
       +             "&& xprop -id $1 -f "s" 8s -set "s" \"$prop\"", \
       +             "surf-setprop", winid, NULL \
                } \
        }