]> git.eshelyaron.com Git - emacs.git/commit
Add support for cursors in xwidget views
authorPo Lu <luangruo@yahoo.com>
Sat, 6 Nov 2021 03:28:40 +0000 (11:28 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:41 +0000 (02:59 +0100)
commit1cc19d0437a712a1589c0adaaa65d7c12decd8c1
tree03fc08fa3c3d3cbdd2d3bf6fc9b1d4dd375021c3
parent74711c0298103b28907f715b5232ccd014914c10
Add support for cursors in xwidget views

* src/xwidget.c (mouse_target_changed): New function.
(Fmake_xwidget): Attach mouse target changed signal.
(cursor_for_hit, define_cursors, mouse_target_changed): New functions.
(xwidget_init_view): Set default cursor to nontext cursor.
(x_draw_xwidget_glyph_string): Define cursor.

* src/xwidget.h (struct xwidget_view): Add cursor field.
src/xwidget.c
src/xwidget.h