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#44002: 27.1; Small window height with VcXsrv X server when built with gtk3 toolkit Date: Sat, 17 Oct 2020 10:52:29 +0300 Message-ID: <83y2k5thky.fsf@gnu.org> References: <83d01iwrsa.fsf@gnu.org> <83d01iugyn.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44002@debbugs.gnu.org To: "J. Scott Berg" , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 17 09:53:12 2020 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 1kTh1b-0007dU-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Oct 2020 09:53:11 +0200 Original-Received: from localhost ([::1]:38620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTh1a-0000ri-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Oct 2020 03:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTh1S-0000ph-GW for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 03:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTh1S-0000wS-7H for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 03:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTh1S-0005lU-11 for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 03:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Oct 2020 07:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44002 X-GNU-PR-Package: emacs Original-Received: via spool by 44002-submit@debbugs.gnu.org id=B44002.160292116022128 (code B ref 44002); Sat, 17 Oct 2020 07:53:01 +0000 Original-Received: (at 44002) by debbugs.gnu.org; 17 Oct 2020 07:52:40 +0000 Original-Received: from localhost ([127.0.0.1]:33209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTh16-0005kq-E5 for submit@debbugs.gnu.org; Sat, 17 Oct 2020 03:52:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTh15-0005ke-0r for 44002@debbugs.gnu.org; Sat, 17 Oct 2020 03:52:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52109) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTh0y-0000mw-VR; Sat, 17 Oct 2020 03:52:32 -0400 Original-Received: from [176.228.60.248] (port=1909 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kTh0v-000160-7T; Sat, 17 Oct 2020 03:52:32 -0400 In-Reply-To: (jsberg-bnl@outlook.com) 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:190768 Archived-At: > From: "J. Scott Berg" > Date: Fri, 16 Oct 2020 23:29:09 +0000 > > I did a bit more debugging. What seems to be happening is that we receive a pair of ConfigureNotify events in rapid succession. The first is for the top level window, and has a reasonable width and height. The second is for the window associated with the frame, but it has a width=1 height=1. This then leads to the resizing of the frame. Presumably the frame's window is not yet mapped, and thus the bogus width and height. Checking for visibility on the frame fixes the problem. I've attached a patch that works for me, but I haven't exhaustively tested all the various possible cases. Thanks. Martin, any comments on the proposed patch? Or on the problem in general? Btw, do we understand why this happens only with VcXsrv?