summaryrefslogtreecommitdiff
path: root/src/xwidget.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-11-06 11:28:40 +0800
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-07 02:59:41 +0100
commit1cc19d0437a712a1589c0adaaa65d7c12decd8c1 (patch)
tree03fc08fa3c3d3cbdd2d3bf6fc9b1d4dd375021c3 /src/xwidget.h
parent74711c0298103b28907f715b5232ccd014914c10 (diff)
downloademacs-1cc19d0437a712a1589c0adaaa65d7c12decd8c1.tar.gz
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.
Diffstat (limited to 'src/xwidget.h')
-rw-r--r--src/xwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xwidget.h b/src/xwidget.h
index 50d8271db19..e62502730d5 100644
--- a/src/xwidget.h
+++ b/src/xwidget.h
@@ -33,6 +33,7 @@ struct window;
#if defined (USE_GTK)
#include <gtk/gtk.h>
#include <X11/Xlib.h>
+#include "xterm.h"
#elif defined (NS_IMPL_COCOA) && defined (__OBJC__)
#import <AppKit/NSView.h>
#import "nsxwidget.h"
@@ -102,6 +103,7 @@ struct xwidget_view
#if defined (USE_GTK)
Display *dpy;
Window wdesc;
+ Emacs_Cursor cursor;
struct frame *frame;
cairo_surface_t *cr_surface;