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#46827: Broken initial size of GTK3 frame Date: Tue, 02 Mar 2021 16:11:19 +0200 Message-ID: <83zgzl63y0.fsf@gnu.org> References: <6caa020a-084c-e3f2-7a34-262f7127b21b@gmx.at> <87eegz41ui.fsf@gmail.com> <875z2b3srx.fsf@gmail.com> <87ft1fyo88.fsf@gmail.com> <8a346498-e7e3-ca92-e518-86f6fc2c37b7@gmx.at> <87y2f6spgm.fsf@gmail.com> <87v9aaslh9.fsf@gmx.net> <689ba08c-639f-af40-5c30-95dcceac552f@gmx.at> <359cec57-48d3-dc97-df0f-a778a0786001@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46827@debbugs.gnu.org, rpluim@gmail.com, stephen.berman@gmx.net To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 02 15:18:44 2021 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 1lH5rI-0001g3-9K for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 15:18:44 +0100 Original-Received: from localhost ([::1]:48784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH5rH-0002IL-Be for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 09:18:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH5ko-0004M9-EY for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 09:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH5ko-0007ON-6k for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 09:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lH5ko-0001MH-1f for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 09:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Mar 2021 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46827 X-GNU-PR-Package: emacs Original-Received: via spool by 46827-submit@debbugs.gnu.org id=B46827.16146942905183 (code B ref 46827); Tue, 02 Mar 2021 14:12:02 +0000 Original-Received: (at 46827) by debbugs.gnu.org; 2 Mar 2021 14:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:52148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH5kH-0001LX-Nf for submit@debbugs.gnu.org; Tue, 02 Mar 2021 09:11:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH5kE-0001LJ-Sj for 46827@debbugs.gnu.org; Tue, 02 Mar 2021 09:11:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40820) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH5k8-0007Gf-VM; Tue, 02 Mar 2021 09:11:21 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4605 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lH5k6-0001hD-EZ; Tue, 02 Mar 2021 09:11:19 -0500 In-Reply-To: <359cec57-48d3-dc97-df0f-a778a0786001@gmx.at> (message from martin rudalics on Tue, 2 Mar 2021 10:07:02 +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" Xref: news.gmane.io gmane.emacs.bugs:201220 Archived-At: > From: martin rudalics > Date: Tue, 2 Mar 2021 10:07:02 +0100 > Cc: 46827@debbugs.gnu.org > > > So the problem still seems that redisplay misses a pending > > window change. > > Confirmed meanwhile. The attached patch fixes the problem here. Eli > will tell use whether we can put that do_pending_window_change in some > suitable safe place within redisplay_internal. What's wrong with this place? But please note that after calling do_pending_window_change you need to perform the "maybe the selected window changed" dance we do after other similar calls. Otherwise, I'm okay with this change, but only on master. Emacs 27.2 will have to make do with what we have now.