Fix clickexternplayer(), no need to test the target again
This commit is contained in:
parent
c069b76f1b
commit
ee04671220
2
surf.c
2
surf.c
|
@ -1425,11 +1425,9 @@ clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h)
|
||||||
{
|
{
|
||||||
Arg arg;
|
Arg arg;
|
||||||
|
|
||||||
if (webkit_hit_test_result_get_context(h) & OnMedia) {
|
|
||||||
arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h));
|
arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h));
|
||||||
spawn(c, &arg);
|
spawn(c, &arg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user