]> git.eshelyaron.com Git - emacs.git/commit
Make `xwidget-display-event' a special event as well
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 02:42:46 +0000 (10:42 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 02:47:29 +0000 (10:47 +0800)
commit9324efac480df3cd78af112da2b12a0d2bd18e02
treedf9a164eca57746fd357c296613062cec7b1f49b
parent536e7bf03b2ef8451fdd6b8d62db08f2bc7ebec9
Make `xwidget-display-event' a special event as well

* doc/lispref/commands.texi (Xwidget Events): Document that
`xwidget-display-event' is a special event, and that it should
be handled through callbacks.

* etc/NEWS: Update NEWS entry.

* lisp/xwidget.el (xwidget-webkit-new-session)
(xwidget-webkit-import-widget): Attach display callback.
(xwidget-webkit-display-event): Call display callback instead.
(xwidget-webkit-display-callback): New function.

* src/keyboard.c (make_lispy_event): Store
source information for XWIDGET_DISPLAY_EVENT correctly.

* src/xwidget.c (store_xwidget_display_event): Store
source of the display request.
(webkit_ready_to_show): Store source if available.
(webkit_create_cb_1): Store source if available.
(kill_xwidget): Remove dead widget from internal_xwidget_list.
doc/lispref/commands.texi
etc/NEWS
lisp/xwidget.el
src/keyboard.c
src/xwidget.c