GNU bug report logs - #79164
[PATCH] Fix macOS frame position update after resize/move in nsterm.m

Previous Next

Package: emacs;

Reported by: 川本 琢二 (Dr.Sc.KAWAMOTO,Takuji) <kawamoto.takuji <at> gmail.com>

Date: Sun, 3 Aug 2025 06:46:02 UTC

Severity: normal

Tags: patch

Done: Alan Third <alan <at> idiocy.org>

Full log


Message #32 received at 79164 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: 川本 琢二 (Dr.Sc.KAWAMOTO,Takuji)
 <kawamoto.takuji <at> gmail.com>
Cc: Gerd Möllmann <gerd.moellmann <at> gmail.com>,
 79164 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#79164: frame position not updated correctly when resizing
 from left edge on macOS
Date: Tue, 5 Aug 2025 21:03:59 +0100
On Tue, Aug 05, 2025 at 08:20:16PM +0900, 川本 琢二 (Dr.Sc.KAWAMOTO,Takuji) wrote:
> Thank you for the reference.
> 
> Yes, I also noticed that Yamamoto-san’s `emacs-mac` port uses similar
> approaches
>  to track window movement and resizing accurately on macOS.
>  That gave me more confidence that this patch’s use of `windowDidMove` and
>  `windowDidEndLiveResize` to update frame geometry is consistent with
> well-tested practice.
> 
> My patch aims to integrate such behavior into upstream Emacs so that even
> the standard
> Cocoa build reports accurate frame positions during edge-resize
> operations—especially
> for use cases relying on `move-frame-functions`.

I think I redid the resizing code a few years ago, and I'm guessing
this got missed. Thank you for the patch.

Eli, does this require copyright assignment? I'm guessing not as most
of the code is not new, just moved from A to B.
-- 
Alan Third




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.