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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jimmy Yuen Ho Wong <wyuenho@HIDDEN>; Keywords: fixed; merged with #74074; dated Mon, 28 Oct 2024 16:07:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug No longer marked as fixed in versions 31.1 and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug unarchived. Request was from Al Haji-Ali <abdo.haji.ali@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
Merged 74064 74074. Request was from Robert Pluim <rpluim@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug marked as fixed in version 31.1, send any further explanations to 74064 <at> debbugs.gnu.org and Jimmy Yuen Ho Wong <wyuenho@HIDDEN> Request was from Robert Pluim <rpluim@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Oct 2024 16:06:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 28 12:06:31 2024
Received: from localhost ([127.0.0.1]:54473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t5SGF-0007nO-CO
	for submit <at> debbugs.gnu.org; Mon, 28 Oct 2024 12:06:31 -0400
Received: from lists.gnu.org ([209.51.188.17]:52214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wyuenho@HIDDEN>) id 1t5SGC-0007nF-RY
 for submit <at> debbugs.gnu.org; Mon, 28 Oct 2024 12:06:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <wyuenho@HIDDEN>) id 1t5SFa-00034O-VU
 for bug-gnu-emacs@HIDDEN; Mon, 28 Oct 2024 12:05:50 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <wyuenho@HIDDEN>) id 1t5SFY-0005hL-LQ
 for bug-gnu-emacs@HIDDEN; Mon, 28 Oct 2024 12:05:50 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
 ffacd0b85a97d-37ec4e349f4so3295642f8f.0
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 Oct 2024 09:05:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1730131546; x=1730736346; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=GubHKE/f055usgZh9Vb3W9/fbVWCzdb4+WHIIU4N2h4=;
 b=PmzYzfkxpzwooNezsmFUrigMh49Kqq6C1rsFo9ykIPnyD9DO6IR3DdL192P3Bx1Afc
 MpRS9bsoFxi19V2iIqNPfzfs6Pd2bd7HcVTFyABJXNMBlLGOfCb2w9kMyRvruXU0C+Ir
 e6ArsHle391c6FwGXZdQVEisypLN5P7ICkKjmI2tjdQFBksYo22seDZ+efpg5pt7LqHF
 lu3zRwu0TSFLY3fB15vlHdXBgTY5PHa5GS3GN1OloadYCH/2MF4Zr2oFtBI0vXwUmmlI
 VmERfx56sArG9FaNGberjR/GoZwnDHOVFwx+ceBjzEo7C+sW3jfHiaptecvkIBzNtgYu
 SHzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730131546; x=1730736346;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=GubHKE/f055usgZh9Vb3W9/fbVWCzdb4+WHIIU4N2h4=;
 b=u1bb5zTjGGuN2TMk10SzNFhEuVZNnbU+qmIb/HVGYoenft/7QsXepqfL8ohKNOnRYi
 tyyj0chbh0vOAlcilgmSKomfpfgU8Earja2E4UvussT05jwCTWaxN6YT4v+GSqhleahw
 JOdCE9/Vdz5UuykkjwznKk3D+QgKvnngi6FrFwP1ijI5k1+FF+Nf4yejjhvlL9Rv76hY
 +Vue6lakpG15o+m4p0rSYqxw7QQFNa6r3kR2KQy8CNM/2rCKS+VIEDgv0FPSaqI/8Yp0
 Ve5Ylt9lmPK8IHtpTwKvHvGwHs1QxQbp+oP1vyvW0PmM9LAXk1As7GsGxBGS9QLgHbkn
 6QNQ==
X-Gm-Message-State: AOJu0YzB6JQi/JmhdSuugMCmAIrvnVyr9Zf4OVkw0Nwrz8WPj/vfKqGp
 qsCCF5KFtaiQln3W5Kqzr00YgM0Zvl3QQyNHdG0bra6am0oRRmOOD2FfEQ==
X-Google-Smtp-Source: AGHT+IF8BvpwSKYb91S1E7DkqeLGpkYDzmFr0dL8hvDgFK8HE4JfGX6BmLNMyHyS1a45evEEx7vAVw==
X-Received: by 2002:adf:cc83:0:b0:37e:d2b7:acd5 with SMTP id
 ffacd0b85a97d-380610f7f35mr6267387f8f.8.1730131545724; 
 Mon, 28 Oct 2024 09:05:45 -0700 (PDT)
Received: from MobileCat.localdomain
 ([2a01:4b00:89a0:2400:5861:5e52:935c:78bb])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38058b70d5csm9906117f8f.89.2024.10.28.09.05.44
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 28 Oct 2024 09:05:45 -0700 (PDT)
From: Jimmy Yuen Ho Wong <wyuenho@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.4; [NS] Frame position not reported on resize from top left
Date: Mon, 28 Oct 2024 16:05:31 +0000
Message-ID: <m2h68w5i2c.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::42e;
 envelope-from=wyuenho@HIDDEN; helo=mail-wr1-x42e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


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




Acknowledgement sent to Jimmy Yuen Ho Wong <wyuenho@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#74064; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 7 Jan 2026 20:45:01 UTC

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