emacs-devel
[Top][All Lists]
Advanced

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

Re: frame size&position woes


From: Juanma Barranquero
Subject: Re: frame size&position woes
Date: Wed, 24 Jul 2013 12:42:49 +0200

On Wed, Jul 24, 2013 at 5:55 AM, Eli Zaretskii <address@hidden> wrote:

> You should be able to approximate that by multiplying the
> character-unit dimensions by the pixel size of the default face's
> font.

Yes. That's what I called "crude heuristics".

> The result might be a few pixels off, but I don't see that as a
> grave problem, at least not until we have better facilities.

Let's assume there's a new option
`desktop-restore-frames-move-onscreen'. If the user sets it to t, and
I move back a frame that was really visible, but just by a few pixels,
that's a tiny failure. But if I don't move back a frame that is a few
pixels off, and so, harder to access for the user without UI tricks or
M-: (modify-frame-parameters ...), that's a worse problem (not earth
shattering, but definitely not very user-friendly). Which means that,
to be safe, the heuristics must include a small constant factor to err
on the safe side. Crude. So yes, I'll do it, but certainly not having
a get-frame-window-system-metrics pains me.

> It's good enough for me, because currently I have to restore my frames
> manually every time I quit and restart Emacs for some reason.

Uh? Have you filed a bug report about it?

    J



reply via email to

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