unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fix mouse face artifacting in NS port
       [not found] <875yu0panj.fsf.ref@yahoo.com>
@ 2021-10-14  3:06 ` Po Lu
  2021-10-15 17:43   ` Alan Third
  0 siblings, 1 reply; 2+ messages in thread
From: Po Lu @ 2021-10-14  3:06 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]


I don't know if this is the right thing to do, but this gets rid of the
mouse face box not being drawn correctly on modelines, and text
artifacting on GNUStep when highlighting custom buttons.

Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ns-fix-mouse-face.patch --]
[-- Type: text/x-patch, Size: 582 bytes --]

diff --git a/src/nsterm.m b/src/nsterm.m
index 77f4ee8ca6..c6f80f8035 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4054,19 +4054,6 @@ overwriting cursor (usually when cursor on a tab) */
   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);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Fix mouse face artifacting in NS port
  2021-10-14  3:06 ` Fix mouse face artifacting in NS port Po Lu
@ 2021-10-15 17:43   ` Alan Third
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Third @ 2021-10-15 17:43 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

On Thu, Oct 14, 2021 at 11:06:56AM +0800, Po Lu wrote:
> 
> I don't know if this is the right thing to do, but this gets rid of the
> mouse face box not being drawn correctly on modelines, and text
> artifacting on GNUStep when highlighting custom buttons.

Font handling on GNUstep is terrible, so if I've seen these problems,
which I'm not sure I have, I'd probably have put it down to that.

Do you have a repro for these faults?

-- 
Alan Third



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-15 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <875yu0panj.fsf.ref@yahoo.com>
2021-10-14  3:06 ` Fix mouse face artifacting in NS port Po Lu
2021-10-15 17:43   ` Alan Third

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).