From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Questions regarding PGTK, high-dpi font-rendering, new X11-Warning Date: Mon, 5 Dec 2022 15:01:02 -0500 Message-ID: References: <87cz99l4td.fsf@thaodan.de> <87v8n1w7cf.fsf@yahoo.com> <87wn7gc53k.fsf@thaodan.de> <87r0xnx4fs.fsf@yahoo.com> <87edtncvss.fsf@thaodan.de> <87ilizwbkw.fsf@yahoo.com> <87cz94vjgl.fsf@yahoo.com> <874jugv9wi.fsf@yahoo.com> <87r0xkt06d.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004902b205ef1a269d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , xenodasein@tutanota.de, =?UTF-8?B?QmrDtnJuIEJpZGFy?= , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 05 21:01:51 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p2Hew-00056V-La for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Dec 2022 21:01:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2HeR-00072c-5i; Mon, 05 Dec 2022 15:01:19 -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 1p2HeP-00072T-E5 for emacs-devel@gnu.org; Mon, 05 Dec 2022 15:01:17 -0500 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2HeN-0006Kv-JE for emacs-devel@gnu.org; Mon, 05 Dec 2022 15:01:16 -0500 Original-Received: by mail-yb1-xb30.google.com with SMTP id l67so15945648ybl.1 for ; Mon, 05 Dec 2022 12:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8Kgs/IARgO3m/DGBBI84lCOA/x8BtyAUU99+fbNuDqQ=; b=nmocEgudgoUFs4x8PzpDb0z3/OqirFhZbVPzJ6HIjkpJzUdaaT1lKRcY80pGcUcpiD Noi/XpzCsr6JiYQ172rK7AI4o8aSqkoj3bgnJ/dG8HVEtq408tkXmSI1Uv47TKDbviqZ wHz7EIcb+/qufjVXLdjMF80qAnclRo3z8q5fLNJuiuLvrgI1qx/gTP/iGgnD8g5d70Bk 9QvYXgvcfnIHZPqpJkD2Su+df8VNxYUWs1T4EUiC64jpW5NCrp2iopPlF6Mqwd1OlCpJ bOzWOma1otYciY6H6gO8RzWOoY5wIRXhW4Z7e7r9jF1MxLhOGKGlkxg2Lkeyc3EmX8f3 9g5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8Kgs/IARgO3m/DGBBI84lCOA/x8BtyAUU99+fbNuDqQ=; b=W2Hupgbam+532Hu66jE+Ydq/8fk+Wq6u9PB0Q65OfxFBeQwIfdQHarvwhiX+okH1s5 lNzF1zoDGXbxduc4EHFgCVn04SOoqBY+CzsAH0rYmG5GducRBFrhCpVc1jwoCEzI2UzT ioXL3Luk5oYrSgijNZLETeTdGD/Mi3RfACgY0nuQMoVVt2EfQw7ygWpxzqVtqP1GUyOA IhhYAlMvEqJrVy+Jee14o8cLuZw0DOqvthC6GgDWeag0Sh40XZbI4ig/ZGzAe2D7Vmcn n81q8sPcTbDkWUUzfq0o/r6jKVEMNyTugQYcqzk1Pj1mibe5abPTJLGg3Mk0BR+3uy1U 2UYw== X-Gm-Message-State: ANoB5pltpKZ7MXoujurDJgM7oII21NnGI18hlih62kv6iMNKz/ih/krr Tkd9mwc1HHAuVOatjX8nzOmKc6LFboav1LsqNFs= X-Google-Smtp-Source: AA0mqf7+LrP3IpvFf8XqEyc4PrhcNzpQYUiDebM5dvQBk1aUdJYwZEQ8NFJWfi0AK9aS/54F1enXjkE0uWxloHhhb28= X-Received: by 2002:a25:d4e:0:b0:6f3:9ca5:5488 with SMTP id 75-20020a250d4e000000b006f39ca55488mr43072716ybn.526.1670270474058; Mon, 05 Dec 2022 12:01:14 -0800 (PST) In-Reply-To: <87r0xkt06d.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=yandros@gmail.com; helo=mail-yb1-xb30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300936 Archived-At: --0000000000004902b205ef1a269d Content-Type: text/plain; charset="UTF-8" On Wed, Nov 30, 2022 at 7:54 PM Po Lu wrote: > Stefan Monnier writes: > > > What I read here is "we should move each GUI event loop into its own > > thread" :-) > > That's not ok, as Xlib (used by both those toolkits, and also Emacs > itself) is not thread safe. > > Even though it can be thread safe at first glance, having multiple > threads work at the same time will mess up request serial tracking, and > `x_error_catcher' and friends will stop working. > I'm not up to doing the work myself, and obviously I'm not asking anyone else to do so, but I wonder if anyone has looked at moving emacs from Xlib to XCB? ~Chad --0000000000004902b205ef1a269d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Nov 30, 2022 at 7:54 PM Po Lu <= ;luangruo@yahoo.com> wrote:
Stefan Monnier <monnier@iro.umontreal.ca> writes:

> What I read here is "we should move each GUI event loop into its = own
> thread" :-)

That's not ok, as Xlib (used by both those toolkits, and also Emacs
itself) is not thread safe.

Even though it can be thread safe at first glance, having multiple
threads work at the same time will mess up request serial tracking, and
`x_error_catcher' and friends will stop working.
<= br>
I'm not up to doing the work myself, and obviously I'= m not asking anyone else to do so, but I wonder if anyone has looked at mov= ing emacs from Xlib to XCB?

~Chad
=C2=A0=
--0000000000004902b205ef1a269d--