From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#32334: Window resize fails in remote X11 Date: Sun, 13 Feb 2022 14:00:26 +0800 Message-ID: <87a6evmhl1.fsf@yahoo.com> References: <20180731102139.GA24976@volibear> <83r2jjnzfg.fsf@gnu.org> <20180731163501.GF24976@volibear> <83k1pbnxrc.fsf@gnu.org> <87sh3y5jh6.fsf@gmail.com> <83sh3ymdxl.fsf@gnu.org> <87o9em5i8z.fsf@gmail.com> <87bmakq3os.fsf@gmail.com> <83in4svp0d.fsf@gnu.org> <87y3djby70.fsf@gmail.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26462"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) To: Eli Zaretskii , 32334@debbugs.gnu.org, Demo@Demosthenes.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 13 07:01:33 2022 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 1nJ7wy-0006h0-I3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 07:01:32 +0100 Original-Received: from localhost ([::1]:35900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJ7ww-0004ga-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 01:01:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJ7wW-0004ae-UU for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 01:01:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJ7wU-0001YC-LS for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 01:01:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJ7wU-0005Eu-Gh for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 01:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2022 06:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32334 X-GNU-PR-Package: emacs Original-Received: via spool by 32334-submit@debbugs.gnu.org id=B32334.164473204420108 (code B ref 32334); Sun, 13 Feb 2022 06:01:02 +0000 Original-Received: (at 32334) by debbugs.gnu.org; 13 Feb 2022 06:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:36138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJ7wC-0005EG-9f for submit@debbugs.gnu.org; Sun, 13 Feb 2022 01:00:44 -0500 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:40749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJ7wB-0005E1-4W for 32334@debbugs.gnu.org; Sun, 13 Feb 2022 01:00:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644732036; bh=+mBolQvYqQ8F7BYsQyAIrF1aXIm3AWRvD8gz0MHQVdM=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=a5czRbMNQEhIedVHbX46IdU4aWRm4p+8ef1cWE1JdPMD9NYaaByvznmWI9FUFXVZ1e/Vua5xt1hldYmUQxYINXHH/tthjzYPmeSvPhK5UXN8CGawpd6c1gSCm1RMEiz3SPEteyyAFIQzrAb6FrqEZtW0D/f+upT/fLVRdeZv1aK1oBQaLLMU9Wzyf9VaShu5SW7KVGHgc7oyhboCuxDkIucA+EjrIeo8VCDXu7YvQIhvukFDk+LdmJ2WV3tiuvlGN5LIKxzjhXPnwaixyVDCJrDCZrdrLKsJ3LwL9zfXhWJjxgLodeZYAUCKA5XoeWj17hjF41/91SJdMaS1WUhgFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644732036; bh=Rlyww5MmJpmfVRxPSpsAAvZdqZvxx70A9rs6hbRP1GC=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=AxOGXZqBAg5NVaqZ04S57IR5KLAqTtsY97hREWKBem7qgz8yuAaWv3VB4DXMubYg5pRaapsqpf8TEv5c59vn1tXKd9VdIDTvD8UTGai3aOLTGPGfET7tycMjVvKgQRmpjuQok7SFUvw1Kq2MiqI5sm4eM5sd9hyzQ8yZWer4sh24/Og/mABvVJcb+kEGMqWAyQc4imAlEb28bKUQhZQZ+bxY1JCIlY8FgLQMIYRO5QOqDkzHL3K2o31PksodiqUVJVjAeUBq5cuEwv4zrOwOA3KwDbOtssKBmj5XgYxcGQJfyMrzGNRxTB8NQvgeCFxxIZ0rQVWPLfTv7kUySP0NyQ== X-YMail-OSG: tBPMsS4VM1lbFlfxPYAfMgGnmeOGXex135bVvMrHU4Pdxjs1nLzRZgSU1FjRx4V M5lxhVCfx5ZeAzXeuTEORLxzoNp1axqaCPRNXnQRI0aPZPaMG.eqTkGQqRVyKkOIUfIRW.UG4dwt _RQ1nY0hV2Z3OhSGKHBqXm2J9qGqYUgJN8X6jTDmgvQtqfyhD4MyQRuuMaeUF5oOClzgVGmPTEeP gp1SzQRkBd8cct.wvRWPkwiS5UdwbrfX9KwR5imx2rmpDT0aIr8iUgSN5jgpdATj6g_G6nqHfZ8c rLhcYCRoHctWOcUDdW4OE0KY4OJGwZWmm3JqD.ipCQ4RU1GV2cmYXvVjECIaM_OprwgruBlVKHry 1LxuHYsHZMkNuydndwZsTivUzeMGKPLP1yKO.fk0eyFPppi_SiNrB61ykDEU6oM8u5mNiYesIDfJ uK4LdJH_S.N9CbhP2yxk0SYi5OzerPGbgkDroEnavpDvDPBC.AoA.h4ggUP63z2dMps2w3m6lCjY EMWNZxhY3FbqheKfb694OKymoxpYwZg03IpmOcG.7f5LIb.9bo1Z9X3Uloxk7OyMu5SJzbSLrYAe z6v6mB6NPtWp1ZMmUqt5vf2ql0_MNLYSTrV4gWP.9mvjNyMOx5YUxwCH0Nm09MbDVGRVUQT6ax2F adbKXDgwm1r1NalJnijJw6DVQaT099w7LK8ojwk9Qt.GsCuNev5F8Xkwfynr_pZ8fqfjzHdW0gek b42nz8oANiLyJN2oo_d.L15F1LtBp3Rs7o1.8S62WaRzdPM_dXY.79yvAlnna4oby1yq9imffmts 3jwlRQKj0O9zEsEkhE6YFMs.ezd0K4_AETOO1tqgBc X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sun, 13 Feb 2022 06:00:36 +0000 Original-Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 276ce0ba1c5f0e1a3c9d2d25c549903d; Sun, 13 Feb 2022 06:00:30 +0000 (UTC) In-Reply-To: <87y3djby70.fsf@gmail.com> (Robert Pluim's message of "Mon, 06 Aug 2018 12:12:51 +0200") X-Mailer: WebService/1.1.19724 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:226759 Archived-At: Robert Pluim writes: > - Either no other program on the internet uses XDBE, or if they do > their users never use X11 forwarding over ssh > - The emacs toolkit type doesn=CA=BCt matter, they all have visual proble= ms > of one kind or another > - XDBE calls are definitely being made, and they're not returning > errors > - It=CA=BCs not a timing issue: if I delay the XDBE setup until after the > initial frame has been set up and shown, then visual problems still > start occuring immediately after the XDBE initialization > > I also tested with Cygwin's XServer, which supports the double > buffering extension. I used the same ssh session, and emacs came up > and looked and worked fine. > > So at this point it=CA=BCs looking more like an issue with VcXsrv than wi= th > emacs. I=CA=BCll see if I can engage with them after I get back from vaca= tion. Emacs is the only living program that still uses the double buffer extension. It is considered an obsolete but supported extension by the X.Org developers, and not much priority is given to it by other X server developers, aside from ensuring that the code to support it still builds. The recommended alternative is to create a pixmap and to use that as a back buffer instead. It will completely mess up color allocation on some other X servers, and might lead to sub-optimial memory usage, so replacing the Xdbe code with that entirely is not an option. Instead, we could use the pixmap strategy on X servers that are known to be buggy. Off the back of my head I can list Hummingbird's X servers (`x-server-vendor' usually returns "Hummingbird Ltd." or some variant thereof), VcXsrv (which unfortunately cannot be easily identified) and some versions of Xming (which identifies itself as X.Org, not much help there either.) The easy solution would to simply disable double buffering on those servers, at the cost of some extra flickering to their users.