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

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

Re: Frame shifted upwards upon changing font size


From: Po Lu
Subject: Re: Frame shifted upwards upon changing font size
Date: Wed, 14 Sep 2022 18:30:57 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

uzibalqa <uzibalqa@proton.me> writes:

> Could emacs get to understand the monitor within which the initial frame
> gets displayed and be able to center the frame in that monitor?

That gets tricky very quickly.  Monitor names are not guaranteed to
remain unique, and X-level identifiers are reused in a monotonically
increasing fashion and cannot be relied on to uniquely identify the
monitor on which where the initial frame was created.

In fact, X has 3 kinds of "monitor": CRTCs, outputs, and monitors.  A
CRT controller defines a rectangle in the screen that has a single mode
line, and can have multiple outputs attached.  An output is a physical
output that displays the contents of its CRTC, and a monitor is a subset
of the screen that represents a non-disjoint collection of pixels that
will be presented to the user through 1 or more outputs, which may be
connected to any number of CRTCs.

Of course, a frame might be displayed in multiple overlapping monitors,
outputs, and CRT controllers, at any given time.

Under such a situation, where do you propose to center the frame?


reply via email to

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