[hackers] [surf] Fix clickexternplayer(), no need to test the target again || Quentin Rameau

From: <git_AT_suckless.org>
Date: Tue, 24 Nov 2015 23:18:32 +0100 (CET)

commit ee04671220690ec225112d49ece959239a3e2202
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Nov 24 23:18:06 2015 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Nov 24 23:18:06 2015 +0100

    Fix clickexternplayer(), no need to test the target again

diff --git a/surf.c b/surf.c
index 0dd67b6..a5cfdd0 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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
Received on Tue Nov 24 2015 - 23:18:32 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 24 2015 - 23:24:11 CET