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#59265: 27.1; emacs apparently redraws the entire X window for every update Date: Tue, 15 Nov 2022 21:57:23 +0800 Message-ID: <87leocfhh8.fsf@yahoo.com> References: <87iljhlccn.fsf@tucano.isti.cnr.it> <83leocibu6.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21187"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59265@debbugs.gnu.org, Francesco =?UTF-8?Q?Potort=C3=AC?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 14:58:11 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 1ouwS2-0005HI-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 14:58:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouwRv-0007fP-0l; Tue, 15 Nov 2022 08:58:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouwRt-0007f2-Ul for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:58:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouwRt-0000JW-Kv for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouwRt-0003FM-H6 for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Nov 2022 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59265 X-GNU-PR-Package: emacs Original-Received: via spool by 59265-submit@debbugs.gnu.org id=B59265.166852066812456 (code B ref 59265); Tue, 15 Nov 2022 13:58:01 +0000 Original-Received: (at 59265) by debbugs.gnu.org; 15 Nov 2022 13:57:48 +0000 Original-Received: from localhost ([127.0.0.1]:53538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouwRg-0003Ep-1e for submit@debbugs.gnu.org; Tue, 15 Nov 2022 08:57:48 -0500 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:39832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouwRa-0003EX-3q for 59265@debbugs.gnu.org; Tue, 15 Nov 2022 08:57:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668520655; bh=UQPd5cBHf8TKR2QBREAtldCgjmOiONTz1ZyO+227Iec=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=brIdgfPBvU+DXvgB6We1pvrzuPK02D9F6AWxYjvWgQadpohAUeFn91nWKRwmgnqzWYW5FNuQGxHJcwgb2ZsjgDmcgyrvnIUrvctrlHtTNS38M+BEyddsAyROfHziQjeM7Cll5IWEe6zHV+pDfzIPHWtVCq/YUpnApeT3KvrOMyfIT6I3HASkhhYzJwMI3LdYzTd5HWCQpF4ESOmBNMCzJfCDbdSnwTHFuit19JRf2+Sfl/sRJ3Xl6400doMlhw1vEjzn51/HEaZ36YY8X6IjsbYXIMe9g7cwQ2UFkRMWNm2pVjYuelFLar0VrhlyV++uaWciV9QbHcgjW0GpK0hpIQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668520655; bh=9l7IEDA9bH7ML/F9Q+36iVG1IXlZBw3ovt4IAmRGfyr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VUaZLXolkiMHitMpYzvRi6jhv5wsdvyhAwQjoYbw78KV56k1MjSyKlpqWTAObsdtDVeyfDVOWKBaJOsA7N+cAJfTRYwBE0wJT+GioEn19xqWU/1gaCxQ6hcP9vitgw15cWeKp3ECxmauGPiAaj6kIPrBuUzoUBz6+juMAeSN86zkExW7cPrTmXJVrLyNAAG3q5f33u/w7BwV779NCFkuHZdSz6ou3ZmlCDCRssZjv8u8ofEnmp96eM+FYnQDoZ1G1z+0cBOenSDlJpratyFBjXAOBXKTlyNDGtzfsareDRqMbjnws81pIyCV8nQGqUzSGpU1GkDsZq4i/rBdPR0gPw== X-YMail-OSG: UHgS1BMVM1mM2bekQ5AfCy.HR6Oj.4aSxefLOP8jaIKIGHBxKK_AP_PEZF1O0lz ZXURnwcN1zysnQSGHYYN_eGhqS1o.WEG3qyvjbllewirmWugRKJH_ikYzfq.07wWdHMh7uLvuZSH 6XitmrgNDeVBFZ_jDkDvZlcLu68MKnrK5F7B060v4AvLd2k_pA8jEsF3xX0F5WqcauM.H_kVdu5I txTQSDkaanuZHH7HLB.N5jJ7Z.YIU_9OKoaHRiUo.665wd2a8UU7HW0fJV.5_ABV1zF7v7Sj9tug bNPg5n8nicFneqTiDNrJ7H_UM8ar6z2g_WgHaxkIaHsOUGE6.2ler25yp.1fYPW0GB4adx3t4qWg 4RwtTYlXAyoazZSS8dQnaDWlD8DTygubLImO.Vqf8536PdooRaIzdOeieLzuCnGwkP3fPX4TNrui GraPrCKAJqcZN5KI6x_arT8iZSjcIx8vvC0NxrmMruAqRWxoyMvIo2Kz4Xk63BCwSwN4UWxgHQik CbSj.GYVhna0xfKHn1a1e0cqFu.cSpyyYas3SqapscyMz1rEV7WxaTM6A8Fl4713GzpVbrXqIOFj HD7dYhjYi78sQgK6AS3uXlYxw8rFMcj_s5VoizI6zfGNFW5sKu2xzvBhilh02R9vVhGEttXkltC0 De6t8MzBtCZkfz3j.zTv4swE0NP0O_gFxxBbAsvdOBs2QSlNMgjowTwRYE3hQ5MhpkLOEL7DJITN JCF54DRhdZM4PgLpuge.gZmhYJdUtSRKRC4o3V5GPxlfPxhJEBBcaDmff8zCW1Mij.0e7rw6a4Gg cu1lJ4y03i3nLsVjWxZE.Jh4j3PWxDbL7At5Q0Qf7D X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Tue, 15 Nov 2022 13:57:35 +0000 Original-Received: by hermes--production-sg3-6c8895b545-phbzr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5e88d37bfe2b7ef8fb23adf907485fdc; Tue, 15 Nov 2022 13:57:29 +0000 (UTC) In-Reply-To: <83leocibu6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Nov 2022 15:30:57 +0200") X-Mailer: WebService/1.1.20863 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247945 Archived-At: Eli Zaretskii writes: > One thing I can suggest to try is disable double-buffering. I have no > idea what it can do with Xpra (since I don't really know how does Xpra > do its job, whatever that is). Yes, I explained what the problem is (and it isn't in Emacs) earlier: Judging by the debug info provided in the Xpra bug report, it is relying on the Damage extension to report window damage. The Damage extension always reports damage to the entire window upon a DBE buffer swap, which is almost inconsequential when connected to an actual remote X server (I do that every day), but not when a program like Xpra tries to ferry pixmap contents over the wire. Relying on Composite and Damage to send application contents over the wire is fundamentally the wrong approach. I suspect Xpra has to be written as an X server driver (as its name applies), and that after doing so, its DBE implementation has to be fixed to only call the CopyArea GC op on areas of the back buffer that really changed. So this isn't really a bug in Emacs, sorry. You can work around the problem by turning off double buffering, but that means you will also need to put up with flicker.