From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#74064: 29.4; [NS] Frame position not reported on resize from top left Date: Mon, 28 Oct 2024 16:05:31 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23877"; mail-complaints-to="usenet@ciao.gmane.io" To: 74064@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 28 17:06:59 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t5SGh-00061n-AV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Oct 2024 17:06:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5SGP-0003c7-2J; Mon, 28 Oct 2024 12:06:43 -0400 Original-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 ) id 1t5SGB-0003Uj-GL for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 12:06:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5SGA-0005pZ-G1 for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 12:06:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=GubHKE/f055usgZh9Vb3W9/fbVWCzdb4+WHIIU4N2h4=; b=E5qFo1e88p0N1rm7SRRsAUuJKOXwqFGyEkRcU5CDGqgzlz/Oga/hVP9/q53Qm+B3QK4WVt1SK+Z/DdXxB3AK1LzQx78FV1XmUD3QAtHE31mxFSSlWPgXz6+28LnL4tCVH6jMqSDgmkRmXDKISM1gl8txBEATe3WZQiTuutIYroOfsLCUq11dYyuP6IzOBN97JrhkEfoiJNjb9k86NF3RISqjOwMmRUB83F1pGiw6aFJau6CntYC2QIhbYE8esEhA+d/uiBwynnuAPeOYf5EVSMT0of5dVOjeM9PohnHy7jo/b8hkNrkNAbl/H0fb3/ggSIzED/PLrYeFrAIjZRkEiQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5SGk-0007oH-EX for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2024 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74064 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173013159129974 (code B ref -1); Mon, 28 Oct 2024 16:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2024 16:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:54473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5SGF-0007nO-CO for submit@debbugs.gnu.org; Mon, 28 Oct 2024 12:06:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5SGC-0007nF-RY for submit@debbugs.gnu.org; Mon, 28 Oct 2024 12:06:29 -0400 Original-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 ) id 1t5SFa-00034O-VU for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 12:05:50 -0400 Original-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 ) id 1t5SFY-0005hL-LQ for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 12:05:50 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-37ec4e349f4so3295642f8f.0 for ; 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) Original-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 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Oct 2024 09:05:45 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=wyuenho@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294437 Archived-At: 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