GNU bug report logs -
#74064
29.4; [NS] Frame position not reported on resize from top left
Previous Next
Reported by: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
Date: Mon, 28 Oct 2024 16:07:02 UTC
Severity: normal
Tags: fixed
Merged with 74074
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74064 in the body.
You can then email your comments to 74064 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#74064
; Package
emacs
.
(Mon, 28 Oct 2024 16:07:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 28 Oct 2024 16:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
bug marked as fixed in version 31.1, send any further explanations to
74064 <at> debbugs.gnu.org and Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
Request was from
Robert Pluim <rpluim <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 07 Nov 2024 20:46:02 GMT)
Full text and
rfc822 format available.
Merged 74064 74074.
Request was from
Robert Pluim <rpluim <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 07 Nov 2024 20:47:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 07 Dec 2024 12:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.