X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=surf.c;fp=surf.c;h=4520daa044a35c8b4f7458736ebef03cb0df4946;hp=a9da587e47397b1455c52bfde1991272e1234eb0;hb=72972094bab647bd062cffbbf42de3b2f204ca06;hpb=1007143bda871936e93925a6942c587de2f8939f diff --git a/surf.c b/surf.c index a9da587..4520daa 100644 --- a/surf.c +++ b/surf.c @@ -238,6 +238,7 @@ static void togglefullscreen(Client *c, const Arg *a); static void togglecookiepolicy(Client *c, const Arg *a); static void toggleinspector(Client *c, const Arg *a); static void find(Client *c, const Arg *a); +static void playexternal(Client *c, const Arg *a); /* Buttons */ static void clicknavigate(Client *c, const Arg *a, WebKitHitTestResult *h); @@ -1994,6 +1995,15 @@ clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h) spawn(c, &arg); } +void +playexternal(Client *c, const Arg *a) +{ + Arg arg; + + arg = (Arg)VIDEOPLAY(geturi(c)); + spawn(c, &arg); +} + int main(int argc, char *argv[]) {