[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: child frames on ttys
From: |
Gerd Möllmann |
Subject: |
Re: Q: child frames on ttys |
Date: |
Mon, 02 Sep 2024 15:54:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>> Cc: rudalics@gmx.at, emacs-devel@gnu.org
>> Date: Mon, 02 Sep 2024 14:46:11 +0200
>>
>> The new plan is to record these rectangles as a list of (child-frame
>> rectangle). Probably not Lisp lists, don't know.
>
> Why not simply record the pointer to 'struct frame" inside the glyph
> structure, to indicate which frame it came from? Then you can call
> FACE_FROM_ID like we do now, because that macro already accepts the
> frame pointer. We could have a convention that NULL as the frame
> pointer means the root frame or something.
Yes, that would be an alternative.
I'm not feeling comfortable with it for a mixture of reasons
- glyph::frame wouldn't be useful for anything but tty child frames
- it makes struct glyph larger
- it's a less localized
- the info is already available, I only need to record it
Let's see. If it's too slow (I doubt it), one could try that or
something similar.