]> git.eshelyaron.com Git - emacs.git/commit
Allow xwidgets to accept motion and button events
authorPo Lu <luangruo@yahoo.com>
Wed, 3 Nov 2021 11:02:59 +0000 (19:02 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:40 +0000 (02:59 +0100)
commitf52f7725305506a75ea4709aff56f3190455b7de
treef0f80f15fcda5a4e118bc1d858a35c27ebbc15d0
parent9c9e15a0186603ef4bddd4df5f448f880636f4da
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.
src/xterm.c
src/xwidget.c
src/xwidget.h