From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs 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 Message-ID: <87pln8mpx8.fsf@gmail.com> References: <87y11wn4t2.fsf@gmail.com> <86jzdgselp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4936"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 74074@debbugs.gnu.org, wyuenho@gmail.com, rudalics@gmx.at To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 06 14:53:48 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 1t8gTi-000172-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Nov 2024 14:53:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8gTD-0005ye-Ot; Wed, 06 Nov 2024 08:53:15 -0500 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 1t8gT2-0005xx-8E for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 08:53:05 -0500 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 1t8gT1-00087B-Vp for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 08:53:04 -0500 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:References:In-Reply-To:From:To:Subject; bh=FqfYM0VxC5mKNIROeiZ35Xw54zItrU7qO50F4sZYphc=; b=NW3czyxklcNr45jWnn1ugOIz6GVmwENlwhUH4NjYnlqbjDlmFi26UMyl6bC9fXJgQaVpy2nVEW7+59qVI/9JHJUMTxwb79GDV7igO3UzfMEXeujuBWsri9yBKJk/ro0u3hLQKmYyep+u4yQUL6ZPPsM0ZQAfVS3W8wt0MD44tIaMxMPRTBaTCokB5oQpF4I2/vBSiqwsRPvmUhW91v9WpDhQHef5X4RPKVgvrmQmc3/mbtoMCUMY00HzgF/Jedj2aVS9Wtfq3RLb2fp2nvC81FwJt3cH8MbyCb1TkFjTB7rPZTR0K1H4J95bk5HwzfxNnZ7z2uPOXc50mg4CDNNN4Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8gT1-0000At-LA for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 08:53:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2024 13:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74074 X-GNU-PR-Package: emacs Original-Received: via spool by 74074-submit@debbugs.gnu.org id=B74074.1730901134590 (code B ref 74074); Wed, 06 Nov 2024 13:53:03 +0000 Original-Received: (at 74074) by debbugs.gnu.org; 6 Nov 2024 13:52:14 +0000 Original-Received: from localhost ([127.0.0.1]:40127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8gSD-00009S-NS for submit@debbugs.gnu.org; Wed, 06 Nov 2024 08:52:14 -0500 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:46483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8gS7-00008q-3R for 74074@debbugs.gnu.org; Wed, 06 Nov 2024 08:52:11 -0500 Original-Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43167ff0f91so60006015e9.1 for <74074@debbugs.gnu.org>; Wed, 06 Nov 2024 05:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730901061; x=1731505861; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FqfYM0VxC5mKNIROeiZ35Xw54zItrU7qO50F4sZYphc=; b=j/oqoZAmaNoopzYdNmQxJ/AZCavrr30p/H8KLuevdeEC/yrUFmR/Ii3qqg5t0/x8q/ XdsVPuh3mcmLO9Uyg7mJE/xxGgAbwUr5bREroALu3MowIyToxOUCFoYnRNRJzhzMFB88 zB7m5ft7B6SQtBr42pXZe0KMI3IkFhv+I+M9WPntiDDYADv144FveoPyvQiX4SzCJ5EQ muwyRBuD18CWW0VEXIQvGX4rS9hgLAdPDoOU55iFzrmHpMBh2qxLPHEhft0n3Gj8k3TQ CScRDF99zgavmV0NJVSZSyCAbdoo3ZQLjpSOAT8t67pUyn7W0UOZe9KSN1SNGUQto821 TW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730901061; x=1731505861; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FqfYM0VxC5mKNIROeiZ35Xw54zItrU7qO50F4sZYphc=; b=ftXHqNYaLERwk0IVquWWhXlQc+izcxNavuwW3Se2ZCpfUquzymI6dpFVoIRanpXB5G 8EEEcB6qz+CTcHq7PlR7hqSNwykqKoUAu7kjMxhzUw/sN6NsUFKxe2WqA7zpvwSLCl8h wAUWyNE//qF23nJ9EOGdZg5gVWQdRylxN+IOe+xpGsN/QqIEhujOhKS5QHZwNeCqDeut gI/+TxQUSLFGB13Eph8q0Wu4XnfQBZfwGTzw8ZdTgAMBou+QN8m0fDgWnrLhquXn+ZgP ChEYC9dxeC+9LHwDvtEyBgxBSjctjrLXQOmJb+gt9YoPqFrr+f7Xm8Sm6WyND5cBsUmu NbFQ== X-Forwarded-Encrypted: i=1; AJvYcCW3gcCDue8oUc0sQqegEB6V8qtckc0DYwFvjHdjFXspY124DooK5+2uJWcwmR+/aPGMMzEaUg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwqeIV+SnslxSjmZgz9+nSQHyWbTs8G1qax+elbfvIh2k26EtUH 5e8EJ3rYUH/LSsByfTJ7//H6WRMkp967aPvLbSlOMo9DGA5B2KXC X-Google-Smtp-Source: AGHT+IE4mB0Yh54HqU+YiDdKoFShSmcE56AIMKqrB2i/1YT0gaj6V+6PkRRrm7bdACJci0mPFXlNjg== X-Received: by 2002:a05:600c:511f:b0:42f:4f6:f8bc with SMTP id 5b1f17b1804b1-4327b6fd459mr213635865e9.9.1730901060540; Wed, 06 Nov 2024 05:51:00 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:dff4:95e6:c486:428f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa6bf546sm23766385e9.21.2024.11.06.05.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 05:50:59 -0800 (PST) In-Reply-To: <86jzdgselp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 Nov 2024 14:58:58 +0200") 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:294962 Archived-At: >>>>> On Wed, 06 Nov 2024 14:58:58 +0200, Eli Zaretskii said: >> Cc: 74074@debbugs.gnu.org, martin rudalics >> From: Robert Pluim >> Date: Wed, 06 Nov 2024 09:29:29 +0100 >>=20 >> I see that under X11, the `move-frame-functions' are called when >> resizing from the top left. I don=CA=BCt know what happens on MSWind= ows or >> in a pgtk build. Eli> This comes from the MOVE_FRAME_EVENT, which is triggered on Window= s 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=CA=BCs fixable on macOS, although t= here is >> a (strong) tendency for the 'move=CA=BC events to get bunched up unt= il >> 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. >>=20 >> The question is: do we *want* to fix this? Eli> What are the arguments against fixing this? It=CA=BCs changing the number of platforms that this can be depended on from 2 out of 4 to 3 out of 4, which means it=CA=BCs still not useful for package authors (not that I think it=CA=BCs a particularly useful API in any case :-). But it=CA=BCs 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 =20 NSTRACE_RETURN_SIZE (frameSize); =20 + /* Trigger `move-frame-functions'. */ + [self windowDidMove:(NSNotification *)sender]; + return frameSize; } =20