unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Po Lu <luangruo@yahoo.com>,
	74074@debbugs.gnu.org, wyuenho@gmail.com, rudalics@gmx.at
Subject: bug#74074: 30.0.92; [NS] Frame position not reported on resize from top left
Date: Wed, 06 Nov 2024 14:50:59 +0100	[thread overview]
Message-ID: <87pln8mpx8.fsf@gmail.com> (raw)
In-Reply-To: <86jzdgselp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 Nov 2024 14:58:58 +0200")

>>>>> On Wed, 06 Nov 2024 14:58:58 +0200, Eli Zaretskii <eliz@gnu.org> said:

    >> Cc: 74074@debbugs.gnu.org, martin rudalics <rudalics@gmx.at>
    >> From: Robert Pluim <rpluim@gmail.com>
    >> Date: Wed, 06 Nov 2024 09:29:29 +0100
    >> 
    >> I see that under X11, the `move-frame-functions' are called when
    >> resizing from the top left. I donʼt know what happens on MSWindows or
    >> in a pgtk build.

    Eli> This comes from the MOVE_FRAME_EVENT, which is triggered on Windows as
    Eli> well.

    Eli> Not sure about PGTK, though.  Maybe Po Lu knows.

Po Lu has confirmed: PGTK has no frame positions

    >> 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;
 }
 





  reply	other threads:[~2024-11-06 13:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28 23:36 bug#74074: 30.0.92; [NS] Frame position not reported on resize from top left Jimmy Yuen Ho Wong
2024-11-06  8:29 ` Robert Pluim
2024-11-06  9:31   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-06 10:16     ` Robert Pluim
2024-11-06 12:52       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-06 12:58   ` Eli Zaretskii
2024-11-06 13:50     ` Robert Pluim [this message]
2024-11-06 13:59       ` Jimmy Wong
2024-11-06 14:36       ` Eli Zaretskii
2024-11-07  8:34         ` Robert Pluim
2024-11-07 18:26           ` Jimmy Wong
2024-11-07 20:13             ` Robert Pluim
2024-11-08 12:26               ` Jimmy Wong
2024-11-08 13:37                 ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pln8mpx8.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=74074@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=rudalics@gmx.at \
    --cc=wyuenho@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).