unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: 74064@debbugs.gnu.org
Subject: bug#74064: 29.4; [NS] Frame position not reported on resize from top left
Date: Mon, 28 Oct 2024 16:05:31 +0000	[thread overview]
Message-ID: <m2h68w5i2c.fsf@MobileCat.localdomain> (raw)


Reproduction

1. eval the following in the scratch buffer

(let ((selected-frame (selected-frame)))
  (add-hook 'move-frame-functions
	          (lambda (frame)
              (with-selected-frame selected-frame
	              (message "frame pos in move-frame-functions: %s" (frame-position frame)))))
  (add-hook 'window-size-change-functions
            (lambda (frame)
              (with-selected-frame selected-frame
	              (message "frame pos in window-size-change-functions %s" (frame-position frame)))))
  (add-hook 'window-state-change-functions
            (lambda (frame)
              (with-selected-frame selected-frame
	              (message "frame pos in window-state-change-functions %s" (frame-position frame))))))

(make-frame '((width . 100) (height . 50)))

2. Resize the new frame from the top left corner on the title bar

3. Check the logs in the *Messages* buffer and notice the frame position
was never changed.

4. Move the new frame by dragging from the title bar, notice the
move-frame-functions hook was run and reported the new position.


Expectation:

When a frame is resized from the top left corner by the window manager, the frame position
should update and be reported to Elisp programs, otherwise Elisp
programs have no way to find out what the X/Y coordinate of the frame is
when its resized from the top left.






In GNU Emacs 29.4 (build 2, aarch64-apple-darwin23.6.0, NS
 appkit-2487.70 Version 14.7 (Build 23H124)) of 2024-10-08 built on
 MobileCat.localdomain
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.7

Configured using:
 'configure --prefix=/opt/local --disable-silent-rules --without-dbus
 --without-gconf --without-libotf --without-m17n-flt --with-libgmp
 --with-gnutls --with-json --with-xml2 --with-modules --with-sqlite3
 --with-webp --infodir /opt/local/share/info/emacs --with-ns
 --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d
 --with-rsvg --with-xwidgets --with-native-compilation=aot
 --with-tree-sitter 'CFLAGS=-pipe -Os -Wno-attributes
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch
 arm64' 'CPPFLAGS=-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie
 -Wl,-rpath /opt/local/lib/gcc14 -Wl,-rpath /opt/local/lib
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -arch arm64''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XWIDGETS ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction





                 reply	other threads:[~2024-10-28 16:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m2h68w5i2c.fsf@MobileCat.localdomain \
    --to=wyuenho@gmail.com \
    --cc=74064@debbugs.gnu.org \
    /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).