From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 16:36:24 +0200 Message-ID: <865xp0sa3b.fsf@gnu.org> References: <87y11wn4t2.fsf@gmail.com> <86jzdgselp.fsf@gnu.org> <87pln8mpx8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 74074@debbugs.gnu.org, wyuenho@gmail.com, rudalics@gmx.at To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 06 15:37:11 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 1t8h9h-0006Ib-SZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Nov 2024 15:37:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8h9b-0002AV-Jp; Wed, 06 Nov 2024 09:37:03 -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 1t8h9a-0002AK-El for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 09:37:02 -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 1t8h9a-0003xF-5r for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 09:37:02 -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:References:In-Reply-To:From:Date:To:Subject; bh=SJ7cMbHT+ZYqySgoTz5PUB4NUIF0XNxd6uI5C5a3peQ=; b=l0bLao0EZS5KgCPRicLbK6IMWaUHSIHcRb1oqdf20iucjMOKpPydvS9rax2jUY1dp+noptIgpaw/VxUkA1DSnILEEMfEsePrR4TTPDSotVfM0wDjRX1deT2cXU7yV9vgWnuGDAP6JBxsNHjNEFb8gkcMgM2rtJPpqfxEw44kB4c06K00s6UG0/8jLNJViNg2DuAwxTvk4rOc+QEcFN2Mg0/4YL6LrPCEGLROFiaFsB8NAjwPveYMqRcgE+mWkH/S+v0jt4qls2G3y5MmJOdYljAXlHTujVY/jbX2AJMXwsfFRNpRe01kPvi5D0bfC1/gTmySnjwAVCPH4U5uirMKOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8h9Z-0002KU-Nb for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 09:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2024 14:37:01 +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.17309037948915 (code B ref 74074); Wed, 06 Nov 2024 14:37:01 +0000 Original-Received: (at 74074) by debbugs.gnu.org; 6 Nov 2024 14:36:34 +0000 Original-Received: from localhost ([127.0.0.1]:40237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8h98-0002Jj-CJ for submit@debbugs.gnu.org; Wed, 06 Nov 2024 09:36:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8h96-0002JR-8D for 74074@debbugs.gnu.org; Wed, 06 Nov 2024 09:36:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8h90-0003to-Gt; Wed, 06 Nov 2024 09:36:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SJ7cMbHT+ZYqySgoTz5PUB4NUIF0XNxd6uI5C5a3peQ=; b=qrXt5c9vNrK+4LG8s7we PWwgmKBkp+cGZHRVbClhvZ3W2HiYWNgNQ82WXQR2vrG9h/l+Bku0oyFCfbgXxRBVrtHL6U7bQE/Pe z+KhrRE7GNaC0ylWLs3R/rn9aQk/prefX22eNhdyzwQgm/tcgVKx/91rPJ3n4EiIQ75ArFBG/NJSV JXmCM/fFze24xQCSt/bjcl/tpcJ82lUpNbTtgKgrktjrkCle22pjX7rA2Kz835907G9rNWFD9YEK3 ABcU+6+oE2Wi9ycxrxQ3+v5Djgy3amAqMoGPSerQy31g7snflhpSQOO8GoOwWTvnsEZwcgkKPTvVM z+ue6l7yRzDw7A==; In-Reply-To: <87pln8mpx8.fsf@gmail.com> (message from Robert Pluim on Wed, 06 Nov 2024 14:50:59 +0100) 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:294968 Archived-At: > From: Robert Pluim > Cc: Po Lu , wyuenho@gmail.com, 74074@debbugs.gnu.org, > rudalics@gmx.at > Date: Wed, 06 Nov 2024 14:50:59 +0100 > > >>>>> On Wed, 06 Nov 2024 14:58:58 +0200, Eli Zaretskii said: > > >> A quick experiment shows that itʼs fixable on macOS, although there is > >> a (strong) tendency for the 'moveʼ events to get bunched up until > >> 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. > >> > >> The question is: do we *want* to fix this? > > Eli> What are the arguments against fixing this? > > Itʼs changing the number of platforms that this can be depended on > from 2 out of 4 to 3 out of 4, which means itʼs still not useful for > package authors (not that I think itʼs a particularly useful API in > any case :-). But itʼs 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 > > NSTRACE_RETURN_SIZE (frameSize); > > + /* Trigger `move-frame-functions'. */ > + [self windowDidMove:(NSNotification *)sender]; > + > return frameSize; > } If no one objects, I think we should install this. Thanks.