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

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

bug#58627: 29.0.50; `set-frame-position' doesn't set frame position corr


From: Po Lu
Subject: bug#58627: 29.0.50; `set-frame-position' doesn't set frame position correctly when it is called with negative X or Y
Date: Wed, 19 Oct 2022 19:18:48 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Yuwei Tian <fishtai0@gmail.com> writes:

> The manual for the function `set-frame-position' says this:
>
> "Negative parameter values position the right edge of the outer
> frame by -X pixels left from the right edge of the screen (or the
> parent frame's native rectangle) and the bottom edge by - Y pixels
> up from the bottom edge of the screen (or the parent frame's native
> rectangle)."
>
> Tested with NS port Emacs 28.2 and 29.0.50 on macOS 12.6.
>
> In Emacs 28, when using `set-frame-position' to set the position of
> the child frame, when X or Y is a negative value, it correctly sets
> the position of the child frame so that its right edge is X pixels
> away from the right edge of its parent frame or its bottom edge is
> Y pixels away from the bottom edge of its parent frame.
>
> But in Emacs 29, when X or Y is negative, `set-frame-position` sets
> the position of child frame's (0, 0) point -X pixels left or -Y pixels
> up from its parent frame's (0, 0) point.
>
> `set-frame-position' has inconsistent behavior in Emacs 28 and 29.

Did you build Emacs 28.2 on Mac OS 12.6 as well?




reply via email to

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