From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: long-standing GTK bug Date: Thu, 03 Mar 2022 15:21:57 +0800 Message-ID: <87pmn3sdpm.fsf@yahoo.com> References: <83zhbcg6s4.fsf@gnu.org> <87r1wng2ki.fsf@linaro.org> <83o8rrenn1.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> <87wo5kumkn.fsf_-_@tullinup.koldfront.dk> <86ftc5hc8j.fsf@gmail.com> <87d079io10.fsf@tullinup.koldfront.dk> <87ftbyokll.fsf@tullinup.koldfront.dk> <87pmn5cqpk.fsf@tullinup.koldfront.dk> <871qzktpd8.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9102"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Madhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 03 08:23:52 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 1nPfoV-00028o-Ob for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Mar 2022 08:23:51 +0100 Original-Received: from localhost ([::1]:45702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPfoU-0001Er-5n for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Mar 2022 02:23:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPfn0-0000GN-Ew for emacs-devel@gnu.org; Thu, 03 Mar 2022 02:22:18 -0500 Original-Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:40985) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPfms-0007Ac-N9 for emacs-devel@gnu.org; Thu, 03 Mar 2022 02:22:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646292125; bh=jemJPaALIwGv8qRqGypcJ3dAanRnRkf02HNl3xpFDuk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=OIQ0fvbfawcqo4YYjhtzpZtIySxvJsZvcGPGqujswFnOyPyEzFnH5OuorK6QLHCjaL0mGh2TieJF4HLen9uYwpxCxJiFN+BT/r4QHgCDne6GqZDZwb3n4DOsAoTijhtO7JOc9mUb1z/RL6gJ1FdvuDX+if5CacXQuN7UaB6Hco8LN6BHxx/Ujaz0fAhx1hznUVTcImotbxm5IYF0+qidKIG1/Y57MXOeJetViD8pl+Vho0vZs8T3Lwg+IqZfmziGS6y36I87jOuLdN86JCCl860midnsCnXdCcNlig+qdsKRmkunZUtAyOgqeC8hnOaS79yVtx07KMKeCJKLeL824w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646292125; bh=vWQ9j63IsgiUMdibIUlutDUtgfVJE0TCbMpA9BNGe7p=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FCbacdoBJL5EDs4o9BeBK3yuIvm6aXUr3GJwxEt7FEV+KKvV9gju0EPD3P6/WHwBQl2g8mJPLeiDXegbeN55lhbFPK3Bjld0gCZpV2mJZaYGqO1XpQjskPfCfOzrzMAeXSE7sRr4ht+epoUdPiI4vNwjc0HemOomM7VMw+zlwI75dWm/jPets+W/OLoV2er01pixxEt0XGuri2ZyJUrS5niMAWqqDZQy2SjaOtYR4TJkPeatmDdb9JCfdkDRRDLy+X5R8t6NEQgpTb+JrBo0yKvRknzEpwCvQ3swX6B1F7rJWtwQEfo6vciyCJ33i6pgWcwYWPq+7xkOyGzJBaKq0Q== X-YMail-OSG: ZEcRQP0VM1mOQTX7NosrIKzfnpCDEBqqaijFn.7xTq9NLL4vuC.u12eUE6Zp2b4 hjLUVYDoWnqvkRc9PZGwiHDaTFn9tGJ1KjppPzqc7io2fYdZb_.GQYk4sijkIpJfC0AlE6sOkdVn 0A8guC5EI5Ub0ntx9dhVjUz4tgQDMeoxuA_3FNhUw573dT0h1CHo.6zhoavmPMWsaeSDKzC_fggt hfANZwYTTFGQnJmi38GaH.jBaQTTLnRGX2BddxtEWxVgzJnB2tQbkWGlSFONCvuSakO6HoJLKN9f .qtthhslcV4N1iUnj68gn.KOWlJn6sOV30QpsFBhYEHSaX5Mt4SgcUCOdFz8PphoIscp7kHMFrQZ UTw80k7Su0Mu9O5v_zMaz4QJCurPJqjK9oA3jw16oj0xuySnADBvyZ5owQbcfIyHFaD4Ip2w.JmA 2NvWTInt3_wWIofnWK2nHr5sU4G.r4MmEYYpCng6NDsnDHI._PSYh7IO1LrnMOlwdoD.eV.XFG3T tci7IJjjkx.9G4e8hNDhgiLQFo3NyusGv8CYGJ8b8TLUJyoUfJhg9PYGw.nZ9e3AW6utUODnO3eU no9McWcBD9JX0yQdTmniJK82H.HD_iQtOXc1KqsWNkkvr58_w3__QLTtJ9NKmPbR11wbysT7IMzN anu_w0ZrbgWexGdqcv3OxlwonuLE8VX3HqkVSXpg626QJ_wn06KWDypZMjSARMO.jloqRJOhZS0x Hc1OxezS8AM9imYY1E9e2nC_QjQZuKHHD5CZLfalzgWaRZnlhA2VG6I9jqrdnnjB55C_JAk7g5S7 ._E1xmuxmVERZJgLdifCoH8.stx.f10CGp2sjmzehw X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Thu, 3 Mar 2022 07:22:05 +0000 Original-Received: by kubenode507.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 42a5fbed7c02fe15bbd155d59ef950fa; Thu, 03 Mar 2022 07:22:01 +0000 (UTC) In-Reply-To: (Madhu's message of "Thu, 03 Mar 2022 12:25:42 +0530") X-Mailer: WebService/1.1.19724 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.148; envelope-from=luangruo@yahoo.com; helo=sonic315-22.consmr.mail.ne1.yahoo.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:286779 Archived-At: Madhu writes: > I tried to do a proof of concept using XSetIOErrorExitHandler to prove > it was possible to kill the display and still have a gtk app running. > > https://gitlab.gnome.org/enometh/simple4/-/raw/master/simple.c > > which seemed to work. the code is a bit crufty as it includes the > longjmp path , and i have to reread it to understand it and my headaches > are interfering with thinking. When i checked there was some other snag > in moving this to emacs Display *dpy = gdk_x11_display_get_xdisplay(gdpy); XSetIOErrorExitHandler (dpy, x_io_error_exit_handler, &done); => window = gtk_window_new (); gtk_window_set_title (GTK_WINDOW (window), "hello world"); Judging by the absence of arguments to `gtk_window_new', this code is for GTK 4, correct? The X and GTK configuration will never work with GTK 4 due to other fundamental changes in the toolkit, and PGTK will not be able to access X-specific APIs. Thanks.