[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I position a child-frame below the point?
From: |
Alan Third |
Subject: |
Re: How do I position a child-frame below the point? |
Date: |
Sun, 7 Jan 2018 13:26:13 +0000 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Fri, Jan 05, 2018 at 11:29:54PM -0800, Aaron Jensen wrote:
> Question #1: I'm trying to create a new child-frame and position it
> below the point in the parent frame. If I don't use a child-frame, this
> isn't hard:
<snip>
> However, if I try this with a child-frame then I'm in frame local
> coordinates and I have no idea how to get the appropriate frame local
> coordinates for the current point.
Could you get the parent frame’s coordinates and subtract them?
(frame-position (frame-parent child))
> Question #2:
>
> How do I raise the child frame on macOS without selecting it? I only
> want to display it above the current frame, I don't want it to have
> focus.
You can turn on no-focus-on-map, but iirc that doesn’t work on macOS.
no-accept-focus does work, but means you can never select that frame.
Alternatively you could try changing the z-group to above, although it
could cause trouble when switching to a different application, I
suppose.
--
Alan Third