diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-03 19:02:59 +0800 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-07 02:59:40 +0100 |
commit | f52f7725305506a75ea4709aff56f3190455b7de (patch) | |
tree | f0f80f15fcda5a4e118bc1d858a35c27ebbc15d0 /src/xwidget.h | |
parent | 9c9e15a0186603ef4bddd4df5f448f880636f4da (diff) | |
download | emacs-f52f7725305506a75ea4709aff56f3190455b7de.tar.gz |
Allow xwidgets to accept motion and button events
* src/xterm.c (handle_one_xevent): Pass through some events to
xwidgets.
* src/xwidget.c (synthesize_focus_in_event)
(find_suitable_pointer, xwidget_button_1)
(xwidget_button, xwidget_motion_or_crossing): New functions.
(xwidget_view_from_window): Draw offscreen window instead of the
widget.
(x_draw_xwidget_glyph_string): Set appropriate event masks.
* src/xwidget.h (xwidget_button, xwidget_motion_or_crossing): New
functions.
Diffstat (limited to 'src/xwidget.h')
-rw-r--r-- | src/xwidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xwidget.h b/src/xwidget.h index f51921dbef0..50d8271db19 100644 --- a/src/xwidget.h +++ b/src/xwidget.h @@ -172,6 +172,10 @@ void xwidget_expose (struct xwidget_view *xv); extern struct xwidget *xwidget_from_id (uint32_t id); extern void kill_frame_xwidget_views (struct frame *f); +extern void xwidget_button (struct xwidget_view *, bool, int, + int, int, int, Time); +extern void xwidget_motion_or_crossing (struct xwidget_view *, + const XEvent *); #else INLINE_HEADER_BEGIN INLINE void syms_of_xwidget (void) {} |