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

This commit is contained in:
Quentin Rameau 2015-11-24 23:18:06 +01:00
parent c069b76f1b
commit ee04671220
1 changed files with 2 additions and 4 deletions

2
surf.c
View File

@ -1425,11 +1425,9 @@ 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);
}
}
int
main(int argc, char *argv[])