From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics 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 11:32:39 +0200 Message-ID: <9ad655db-7735-fb80-4517-3e3aaec13ee1@gmx.at> References: <83d01iwrsa.fsf@gnu.org> <83d01iugyn.fsf@gnu.org> <83y2k5thky.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44002@debbugs.gnu.org To: Eli Zaretskii , "J. Scott Berg" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 17 11:33:52 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 1kTib2-000AJv-Rb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Oct 2020 11:33:52 +0200 Original-Received: from localhost ([::1]:56770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTib1-0001mE-Ns for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Oct 2020 05:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTiaE-0001ZK-FH for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 05:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTiaE-0007R2-5m for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 05:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTiaE-0008J5-2x for bug-gnu-emacs@gnu.org; Sat, 17 Oct 2020 05:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Oct 2020 09:33:02 +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.160292717331909 (code B ref 44002); Sat, 17 Oct 2020 09:33:02 +0000 Original-Received: (at 44002) by debbugs.gnu.org; 17 Oct 2020 09:32:53 +0000 Original-Received: from localhost ([127.0.0.1]:33338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTia5-0008Ib-Ee for submit@debbugs.gnu.org; Sat, 17 Oct 2020 05:32:53 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:33141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTia0-0008I6-VF for 44002@debbugs.gnu.org; Sat, 17 Oct 2020 05:32:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602927161; bh=BKACWbI+6jixsvLJEASn6bPD24QKL6uMTDDe6n1xfQY=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Xh/ILmTJjKvlQ/aJL6dlRfA4wmaVFSpbFNmIroPqvPUOPvngQWda5Na4S6bX3tdPD WbzQTN0Z2yMqn6gA/Oe7loxH0HKh1XbXrW4jjgnGdl4vFD1qiWuc4X66/41n+FMxUz qd4Z2C9J0QrPmfQ0gWTSYJNjcsbDKng9G4mfLFiU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.223]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1McpJq-1jtpb11Zb8-00ZxrI; Sat, 17 Oct 2020 11:32:41 +0200 In-Reply-To: <83y2k5thky.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:9RWImvrfT+McfR7aYNvj2UUmX7VfypZOUxCb+SnWQKjGZMnQx+8 E+VkNwA1NnTy/3HGgRk0hjOrk2XadGCLU0k6EXQkfaZ6KnX6ZdroOWaJO5zPjTAYIPkDCdI qB3XzrGHq5TV9uQOhSf42fpLgSm5vBckrdBYJVuVyM58jTO1YGWWEJZy/WLXtptb2Pspai3 PsCqSJzkO8gcJfKJkngnw== X-UI-Out-Filterresults: notjunk:1;V03:K0:+bu2FUOvwtU=:VWqXiQON9ssg3ks2elqo5q As/Ojs2lSMvdX75yV+1CbcBRDcXw9Rt/YQWEeJAWQb0Y+tiMqq7Wp4nEhJLv14EYCkXVpGSPp bjsVr2+nxdBhgdGKaGQHCZaJL1UZs2B3F3K+zZdGxjk+YhQXFVKagwyE9bUoDAjbAxHCSk5YS RrCzGGxWIDK8CvWsrWqJ4u/yMzrXqStAK4KpOyq33XdPR0WSXbv1d6lZ/WiBzDi5bZzRYREWF fFL+CO0cgW8aNBAcVdxqnlthygIO5rfUMlnB7DoRl3wTKwPm5IBSISkApHcjn421YuEsorpgl +TR/2qFiyIDdIstBdH/t8p9gtUsbeUOx5QWPnd58SYVLomxgBpebM8zu7YI6dI2oEyK05vhug PCKlp9Caa5xH18wjzDhxcc+EdqYMxaVlv/WByRHkYJPE/lew/A9xFxiiKsmGsEKpkd3K6S1Zq rgBoEp2TC5UMFAI0w0oRr7Ci+Xtevt8n16qvqaFl4KkndgJVS/pYl2nNQT6XTS6VdKRUkIPke yLa1ZN4eu6n8Gc/G+jmjBhLd+N8YET0+CohgYp5O/iAQGsFZfMNeHQQQ7OSYHhxzNfzwbmGJq HwvuhL79LOMQTQ9DfwqZJH5Abne7xZKtCBX0wpCPje+pDVr04+Ef3qlLZ3LOLYwz04/4LHDca Rwd4bovx2U1FB1mrAztJMsDZfDwbhItXu/c/NaDzAqQANhP8QqzxF73ZG6LhVXkoflvxYu+VD 5dHD/zSIFXOL/v80184oHP01aa6Vos0dxyinMNcXxYWXLr9ZlDOORoTHZf1kSkEfAmyN7ueb 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:190788 Archived-At: >> 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. > > > Martin, any comments on the proposed patch? Or on the problem in > general? I applied it here and didn't see any detrimental effects. I suppose we should just install it and look whether it causes problems with any of our window managers. For me the most interesting aspect is that it apparently works with GTK2. Maybe comparing the traces of GTK2 and GTK3 runs could reveal more. Or comparing a GTK3 trace with that of a Lucid build. > Btw, do we understand why this happens only with VcXsrv? I never used VcXsrv so I don't know how it works. As an example, I have no idea what the "top level window" is and why it is not the same as the "window associated with the frame". Also, the fact that a "bogus height" is propagated while a "bogus width" is not, hints at yet another unresolved mystery. martin