]> git.eshelyaron.com Git - emacs.git/commit
Set embedder correctly to fix menus appearing in the wrong location
authorPo Lu <luangruo@yahoo.com>
Wed, 10 Nov 2021 01:22:38 +0000 (09:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 10 Nov 2021 06:06:07 +0000 (14:06 +0800)
commit1e5eb566cc33ae8b38b7d500c17e6912956e947c
tree863bb9df1e4d07b763f8174f58d4d89972a87e64
parente27ca55ecbfef414411b4a12ba911eb76ce09b4a
Set embedder correctly to fix menus appearing in the wrong location

* src/xwidget.c (record_osr_embedder, from_embedder, to_embedder): New
functions.
(Fmake_xwidget): Attach from-embedder and to-embedder signals.
(find_widget_for_offscreen_window): New function.
(xwidget_button, xwidget_motion_or_crossing): Set embedder on event.
(Fdelete_xwidget_view): Remove embedder status if applicable.

* src/xwidget.h (struct xwidget): New fields `embedder' and
`embedder-view'.
src/xwidget.c
src/xwidget.h