]> git.eshelyaron.com Git - emacs.git/commit
Implement crossing event generation between windows for xwidgets on X
authorPo Lu <luangruo@yahoo.com>
Thu, 27 Jan 2022 05:56:32 +0000 (13:56 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 27 Jan 2022 06:00:46 +0000 (14:00 +0800)
commitb89ae23636f42962194f74e8958ac785b245590c
tree9c7b9bbb40af8ed74567965f6e33c5c8b377cac6
parent2b150f943bc875cf9ce5ac614472e27db697fff9
Implement crossing event generation between windows for xwidgets on X

* src/xwidget.c (enum xw_crossing_mode): New enum.
(xwidget_motion_notify):
(xwidget_motion_or_crossing): Synthesize crossing events if the
pointer moved between different windows.
(window_coords_from_toplevel):
(xw_maybe_synthesize_crossing): New functions.
(xwidget_init_view): Initialize new field to NULL.
(Fdelete_xwidget_view): Clear last crossing window.

* src/xwidget.h (struct xwidget_view): New field
`last_crossing_window'.
src/xwidget.c
src/xwidget.h