diff options
author | Po Lu <luangruo@yahoo.com> | 2022-05-11 12:40:32 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-05-11 12:40:53 +0000 |
commit | 5079f42446aab520e20aad30f825ccbc448ba4e3 (patch) | |
tree | 68972443171942d16b5c9880dc7833e348ff5954 /src/haiku_support.cc | |
parent | 125cda74981fddf63f827f96844cf6d9a413aa1a (diff) | |
download | emacs-5079f42446aab520e20aad30f825ccbc448ba4e3.tar.gz |
Add support for changing pointer types on Haiku
* doc/lispref/frames.texi (Pointer Shape): Document that the
pointer shape can now be changed on some window systems other
than X.
* lisp/term/haiku-win.el (x-pointer-X-cursor, x-pointer-arrow)
(x-pointer-bottom-left-corner, x-pointer-bottom-right-corner)
(x-pointer-bottom-side, x-pointer-clock, x-pointer-cross)
(x-pointer-cross-reverse, x-pointer-crosshair)
(x-pointer-diamond-cross, x-pointer-hand1, x-pointer-hand2)
(x-pointer-left-side, x-pointer-right-side)
(x-pointer-sb-down-arrow, x-pointer-sb-left-arrow)
(x-pointer-sb-right-arrow, x-pointer-sb-up-arrow, x-pointer-target)
(x-pointer-top-left-corner, x-pointer-top-right-corner)
(x-pointer-top-side, x-pointer-watch, x-pointer-invisible): New
pointer constants.
* src/haiku_support.cc (BCursor_from_id): Accept int instead of
enum.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_create_frame): Stop manually assigning
cursors and set default value of the mouse color property.
(haiku_free_frame_resources): Free custom cursors too.
(struct user_cursor_info, INIT_USER_CURSOR): New struct.
(haiku_free_custom_cursors): New function.
(haiku_set_mouse_color): New param handler.
(haiku_frame_parm_handlers): Add param handler.
(syms_of_haikufns): New cursor shape variables from X.
* src/haikuterm.h: Update prototypes.
Diffstat (limited to 'src/haiku_support.cc')
-rw-r--r-- | src/haiku_support.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 6caf8049d1f..39e8daa8269 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -3392,7 +3392,7 @@ BCursor_create_modeline (void) } void * -BCursor_from_id (enum haiku_cursor cursor) +BCursor_from_id (int cursor) { return new BCursor ((enum BCursorID) cursor); } |