summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-09-27 11:47:02 +0300
committertsxv478 <vt0451@yandex.ru>2022-09-27 11:47:02 +0300
commit66f6efcef9f8f83a1d270003beee7aceb60dcfaf (patch)
tree370659390d3fee8910795bad71c2fb767dabaca1 /surf.c
parent9b7c59e32d5980856f3e8a066dbf5e84ff61d030 (diff)
play external
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c10
1 files changed, 10 insertions, 0 deletions
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[])
{