Add support to invoke plumb via a button. - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset d0442a778f915fd51b31ae47fec32be2dd078319
 (DIR) parent 5286e832e09100cad24b7d06d9bf288b1259da3f
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon,  3 Jun 2019 18:49:55 
       
       Add support to invoke plumb via a button.
       
       Diffstat:
        wip/surf-git/patch-surf.c |  30 ++++++++++++++++++++++++++++++
        1 files changed, 30 insertions(+), 0 deletions(-)
       ---
       diff -r 5286e832e091 -r d0442a778f91 wip/surf-git/patch-surf.c
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/wip/surf-git/patch-surf.c Mon Jun 03 18:49:55 2019 +0200
       @@ -0,0 +1,30 @@
       +$NetBSD$
       +
       +Add support to invoke plumb via a button.
       +
       +--- surf.c.orig        2019-03-06 11:19:52.000000000 +0000
       ++++ surf.c
       +@@ -236,6 +236,7 @@ static void find(Client *c, const Arg *a
       + static void clicknavigate(Client *c, const Arg *a, WebKitHitTestResult *h);
       + static void clicknewwindow(Client *c, const Arg *a, WebKitHitTestResult *h);
       + static void clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h);
       ++static void clickplumb(Client *c, const Arg *a, WebKitHitTestResult *h);
       + 
       + static char winid[64];
       + static char togglestats[12];
       +@@ -1971,6 +1972,15 @@ clickexternplayer(Client *c, const Arg *
       +       spawn(c, &arg);
       + }
       + 
       ++void
       ++clickplumb(Client *c, const Arg *a, WebKitHitTestResult *h)
       ++{
       ++      Arg arg;
       ++      
       ++      arg = (Arg)PLUMB(c->targeturi ? c->targeturi : geturi(c));
       ++      spawn(c, &arg);
       ++}
       ++
       + int
       + main(int argc, char *argv[])
       + {