summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-24 23:18:06 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-24 23:18:06 +0100
commitee04671220690ec225112d49ece959239a3e2202 (patch)
tree85ace86809524b5e23b5c40e73b960c12be415d3 /surf.c
parentc069b76f1bab7107d2a7df263ea51482587f8184 (diff)
downloadsurf-ee04671220690ec225112d49ece959239a3e2202.tar.gz
surf-ee04671220690ec225112d49ece959239a3e2202.tar.bz2
surf-ee04671220690ec225112d49ece959239a3e2202.zip
Fix clickexternplayer(), no need to test the target again
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/surf.c b/surf.c
index 0dd67b6..a5cfdd0 100644
--- a/surf.c
+++ b/surf.c
@@ -1425,10 +1425,8 @@ clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h)
{
Arg arg;
- if (webkit_hit_test_result_get_context(h) & OnMedia) {
- arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h));
- spawn(c, &arg);
- }
+ arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h));
+ spawn(c, &arg);
}
int