From fe17e48d6b5bb0e05cab77812b0e36f181666810 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 28 Mar 2016 22:51:49 +0200 Subject: Restore callback clicks --- src/frame.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/frame.c') diff --git a/src/frame.c b/src/frame.c index 591dafd..16d272f 100644 --- a/src/frame.c +++ b/src/frame.c @@ -641,3 +641,12 @@ void cursor_movev(struct frame *fr, int *cpara, int *cpos, int *ctrail, signed int dir) { } + + +void check_callback_click(struct frame *fr, int para) +{ + Paragraph *p = fr->paras[para]; + if ( p->type == PARA_TYPE_CALLBACK ) { + p->click_func(0.0, 0.0, p->bvp, p->vp); + } +} -- cgit v1.2.3