From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Hook run after a frame is resized Date: Tue, 08 Feb 2022 09:05:48 +0100 Message-ID: <871r0dpyub.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 08 11:02:36 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nHNKW-0009gr-Bl for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 11:02:36 +0100 Original-Received: from localhost ([::1]:42418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHNKV-00043E-D1 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 05:02:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHLW3-0005BL-R3 for emacs-devel@gnu.org; Tue, 08 Feb 2022 03:06:32 -0500 Original-Received: from [2a00:1450:4864:20::635] (port=41594 helo=mail-ej1-x635.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHLVw-000851-PQ for emacs-devel@gnu.org; Tue, 08 Feb 2022 03:06:22 -0500 Original-Received: by mail-ej1-x635.google.com with SMTP id a8so49779585ejc.8 for ; Tue, 08 Feb 2022 00:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=H+N/SidIqLdNwkHoUgZcyzQfjdEMwfBlqbe9p2PTLRg=; b=HmbrEgk3PfyS9xA7+w57W2H5kFEaf+L9vBmVYIHZqIZ/7If4Pq8VVXaS1t7Uzx/c7s uDjzhlrHeYT8/kk8knrLczQLwqsHXSEGv3PQL8BzGlo++D7ltmbgo723+maVsXc8EOcP ufJl73QG7xEYkXsS6+iBB++18WGy9G4TJwkW2X2x/xLRiVvy1xRp+RYkrbkk2s+PtB1r 9u5oyGUWvJ73BULt0oQiIU1f2HFtE5G2e9sMumi99VXFEku3hSsoxkRmxefJFvxTAN3B CCXAZLA4TJo9KhMyAru873nogvYHIOBIIqXWWXyJHC4ezqfhNbDm66EJxVP98oashAWY a64A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=H+N/SidIqLdNwkHoUgZcyzQfjdEMwfBlqbe9p2PTLRg=; b=Q3dq3oGOOkii4JutNJCcbfHgTnm0z1ezV+E3KfkzSEcUmpb6KFrqh5RYJdEdQ1lUC+ 817h21OO+dNGMpH+Rbl0j0JdMnlIlFBcWB0iA7L524c4n0t3CG1KdOwWw49xUGSBj//p PpviTKhO2orZ94NcjeUch/Xi70OnpVyicFgxiSYen8cVNYHlN3//I2kcT3D6M/DPFNyq mgXV+jyVcrlXYjxD64074K0hnveN3WkypKQegi4KZNkKs6ofDWbDqnuqTVous27SYn8b VACuxe9NGlx6iMt8W7zqlY+ezNCmW7Xlo9mpoS83pE4cZB/IztrjnnqcNWbiZo14lhS0 OeGA== X-Gm-Message-State: AOAM530bsVlUDuIyzpFKz9OcQ8ZFNEjwik/edzeCG3u5vQMouCsZ7W5V JT0kK7pOuRSAx9K62TkZuSiGhh43IwI= X-Google-Smtp-Source: ABdhPJwSL5ePkk7KjFtvM9ngZDTrQEXeZigDvLBLwt7rBpY6KImQi9YcCBeLueUhvsVhFiJfUKAcrA== X-Received: by 2002:a17:906:fd4f:: with SMTP id wi15mr2614309ejb.728.1644307550024; Tue, 08 Feb 2022 00:05:50 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::a4e1]) by smtp.gmail.com with ESMTPSA id x6sm6270481edv.109.2022.02.08.00.05.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 00:05:49 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::635 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286070 Archived-At: Such a thing seems to be missing, should it be added? `move-frame-functions' runs when the top left corner coordinate of the frame changes. So it already runs when the frame is resized from the top or left edges, or any corner other than the bottom right. It might make sense to run it the remaining cases as well. Note also that on Wayland, the frame is not allowed to know its absolute coordinates, so currently `move-frame-functions' is never invoked. If my use of this hook (undecorate the frame when maximized) is a representative one, then the change suggested above would lead to fewer surprises than keeping the status quo.