[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 278e4fc 1/6: Fix mouse face in NS port
From: |
Po Lu |
Subject: |
master 278e4fc 1/6: Fix mouse face in NS port |
Date: |
Wed, 10 Nov 2021 00:57:39 -0500 (EST) |
branch: master
commit 278e4fc9c6353068334dd39d45334b1df82a6cee
Author: oldosfan <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix mouse face in NS port
* src/nsterm.m (ns_draw_glyph_string): Set s->face to the mouse face.
---
src/nsterm.m | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index ed0e7a2..3727f86 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3976,6 +3976,19 @@ ns_draw_glyph_string (struct glyph_string *s)
NSRect r[2];
int n;
char box_drawn_p = 0;
+
+ struct face *face = s->face;
+ if (s->hl == DRAW_MOUSE_FACE)
+ {
+ face
+ = FACE_FROM_ID_OR_NULL (s->f,
+ MOUSE_HL_INFO (s->f)->mouse_face_face_id);
+ if (!face)
+ face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
+ }
+
+ s->face = face;
+
struct font *font = s->face->font;
if (! font) font = FRAME_FONT (s->f);
- master updated (057fd1e -> ff9cf99), Po Lu, 2021/11/10
- master 68a2a33 2/6: *** empty log message ***, Po Lu, 2021/11/10
- master 278e4fc 1/6: Fix mouse face in NS port,
Po Lu <=
- master 346cfc8 3/6: Add support for event processing via XInput 2, Po Lu, 2021/11/10
- master 7117bbc 5/6: Revert "Fix erasing cursor on top of raised boxes in NS port", Po Lu, 2021/11/10
- master 2b5a2ab 4/6: Fix erasing cursor on top of raised boxes in NS port, Po Lu, 2021/11/10
- master ff9cf99 6/6: Support opening the toolkit menu bar on NS, Po Lu, 2021/11/10