bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67794: 30.0.50; mouse-face is not respected on SVG images


From: Manuel Giraud
Subject: bug#67794: 30.0.50; mouse-face is not respected on SVG images
Date: Tue, 19 Dec 2023 13:45:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Alan Third <alan@idiocy.org> writes:

[...]

> Thanks, that worked. It was fine in NS (under GNUstep no less! It's
> unusual for GNUstep to work when other things don't) but failed under
> GTK/Cairo.
>
> I believe that we need to do some final set-up for the image under
> X/GTK/whatever and it looks as though this is all that's needed:
>
>      id = lookup_image (f, s->img->spec, hlinfo->mouse_face_face_id);
>      s->img = IMAGE_FROM_ID (f, id);
>      prepare_image_for_display (f, s->img); <------
>
> Under X we need to send the image to the X server, and under Cairo it
> does some other stuff. That's what prepare_image_for_display does. It
> does nothing under NS, so the image worked fine under GNUstep.

Thank you Alan!  That does the trick.  So here is an updated version of
the patch that works with XRender (i'll test with cairo).
-- 
Manuel Giraud

Attachment: 0001-Respect-mouse-face-on-image-glyphs-bug-67794.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]