From 66f6efcef9f8f83a1d270003beee7aceb60dcfaf Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Tue, 27 Sep 2022 11:47:02 +0300 Subject: play external --- surf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'surf.c') diff --git a/surf.c b/surf.c index 6f5ba5b..ca18d56 100644 --- a/surf.c +++ b/surf.c @@ -243,6 +243,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); @@ -2028,6 +2029,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[]) { -- cgit v1.2.3