diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-10 23:59:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-10 23:59:19 +0200 |
commit | 3b99a601546a722838cfdb65de9848b7a367b169 (patch) | |
tree | 7f063e1e43ced213e02ef1c769c3e0c784f431e8 /sys/src/cmd/mothra/mothra.c | |
parent | f72da96f2898465c88ff683a69e5b7a14a931737 (diff) |
mothra: handle <input type=image>
Diffstat (limited to 'sys/src/cmd/mothra/mothra.c')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index f40d22960..9e87d4819 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -731,6 +731,13 @@ void dolink(Panel *p, int buttons, Rtext *word){ int yoffs; Action *a; + /* really a button, hit it */ + if(word->p != nil && word->p != p && strcmp(word->p->kind, "button") == 0){ + extern void pl_buttonhit(Panel *p, int buttons, int check); + pl_buttonhit(word->p, buttons, 0); + return; + } + a=word->user; if(a == nil || (a->link == nil && a->image == nil)) return; |