diff options
author | Po Lu <luangruo@yahoo.com> | 2022-05-11 16:01:32 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-05-11 16:01:52 +0800 |
commit | 95717db1e8045f14ca427243a86a0cd433e07273 (patch) | |
tree | a1f9ae21d9e6b5812254801a358dad4d05a7b47b /lisp/term | |
parent | c8141f76758c43ef861cf6ba70895c01252f85c5 (diff) | |
download | emacs-95717db1e8045f14ca427243a86a0cd433e07273.tar.gz emacs-95717db1e8045f14ca427243a86a0cd433e07273.tar.bz2 emacs-95717db1e8045f14ca427243a86a0cd433e07273.zip |
Fix mouse pointer avoidance in some configurations
* lisp/avoid.el (mouse-avoidance-random-shape): Ignore invisible
pointer.
(mouse-avoidance-ignore-p): Adjust for interprogram DND.
* lisp/term/x-win.el (x-pointer-invisible): Make value larger
than the maximum possible glyph.
* src/xfns.c (x_set_mouse_color): Use function that handles
`x-pointer-invisible' too.
* src/xterm.c (x_create_font_cursor): New function. Handle
invisible cursors.
* src/xterm.h: Update prototypes.
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/x-win.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index ca38a0a8c92..08a8bf88e5d 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -241,7 +241,9 @@ exists." (defconst x-pointer-ur-angle 148) (defconst x-pointer-watch 150) (defconst x-pointer-xterm 152) -(defconst x-pointer-invisible 255) +(defconst x-pointer-invisible 65536) ;; This value is larger than a + ;; CARD16, so it cannot be a + ;; valid cursor. ;;;; Keysyms |