]> git.eshelyaron.com Git - emacs.git/commit
Use the real cursor beneath the pointer on xwidgets
authorPo Lu <luangruo@yahoo.com>
Fri, 28 Jan 2022 08:38:02 +0000 (16:38 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 28 Jan 2022 08:40:40 +0000 (16:40 +0800)
commit15f8c6b11e6423a1fbdcee98617882b34f6958f5
tree01200df012ba6b5401eadb2e0d86c00002bf1eee
parentbad16c6f566c909dec3e330e5755a66441162209
Use the real cursor beneath the pointer on xwidgets

* src/xwidget.c (define_cursors): Make manual cursor definition
code PGTK-only.
(xw_update_cursor_for_view):
(xw_last_crossing_cursor_cb): New functions.
(xw_maybe_synthesize_crossing): Attach and disconnect cursor
signal handler where appropriate.
(xwidget_init_view): Set the default cursor to the nontext
cursor.
(Fxwidget_delete_view): Disconnect last crossing signal if
appropriate.
* src/xwidget.h (struct xwidget_view): New field
`last_crossing_cursor_signal'.
src/xwidget.c
src/xwidget.h