GNU bug report logs - #74074
30.0.92; [NS] Frame position not reported on resize from top left

Previous Next

Package: emacs;

Reported by: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>

Date: Mon, 28 Oct 2024 23:38:01 UTC

Severity: normal

Tags: fixed

Merged with 74064

Found in versions 29.4, 30.0.92

Fixed in version 31.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: luangruo <at> yahoo.com, 74074 <at> debbugs.gnu.org, wyuenho <at> gmail.com,
 rudalics <at> gmx.at
Subject: Re: bug#74074: 30.0.92; [NS] Frame position not reported on resize
 from top left
Date: Wed, 06 Nov 2024 16:36:24 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Po Lu <luangruo <at> yahoo.com>,  wyuenho <at> gmail.com,  74074 <at> debbugs.gnu.org,
>   rudalics <at> gmx.at
> Date: Wed, 06 Nov 2024 14:50:59 +0100
> 
> >>>>> On Wed, 06 Nov 2024 14:58:58 +0200, Eli Zaretskii <eliz <at> gnu.org> said:
> 
>     >> A quick experiment shows that itʼs fixable on macOS, although there is
>     >> a (strong) tendency for the 'moveʼ events to get bunched up until
>     >> after the resize ends, which means they all report the same
>     >> position. But then again this happens to a lesser extent under X as
>     >> well.
>     >> 
>     >> The question is: do we *want* to fix this?
> 
>     Eli> What are the arguments against fixing this?
> 
> Itʼs changing the number of platforms that this can be depended on
> from 2 out of 4 to 3 out of 4, which means itʼs still not useful for
> package authors (not that I think itʼs a particularly useful API in
> any case :-). But itʼs a small change:
> 
> diff --git a/src/nsterm.m b/src/nsterm.m
> index 8c405738467..1d18f022713 100644
> --- a/src/nsterm.m
> +++ b/src/nsterm.m
> @@ -7895,6 +7895,9 @@ - (NSSize)windowWillResize: (NSWindow *)sender toSize: (NSSize)frameSize
>  
>    NSTRACE_RETURN_SIZE (frameSize);
>  
> +  /* Trigger `move-frame-functions'.  */
> +  [self windowDidMove:(NSNotification *)sender];
> +
>    return frameSize;
>  }

If no one objects, I think we should install this.

Thanks.




This bug report was last modified 194 days ago.

Previous Next


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