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.help Subject: Re: Would there be a drawback of using the same graphical toolkit on every platform? Date: Sat, 19 Feb 2022 11:38:35 +0800 Message-ID: <87bkz3pltw.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9835"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacsq To: emacsq via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 19 04:40:44 2022 Return-path: Envelope-to: geh-help-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 1nLGc0-0002Pw-2L for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 04:40:44 +0100 Original-Received: from localhost ([::1]:34960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLGby-0002IB-4C for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Feb 2022 22:40:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLGad-0002Hm-FT for help-gnu-emacs@gnu.org; Fri, 18 Feb 2022 22:39:19 -0500 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:39912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLGa5-0002tM-Nq for help-gnu-emacs@gnu.org; Fri, 18 Feb 2022 22:39:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645241923; bh=3Ux7AzxC7iQh8UMU4KLvLbppotCZCtgds9woFJD3VeA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Ku942oL7FoAxrZtO6g6M+MHc0f0mtaBObDdREjmwAI0SHu1erMBiUELpWqUc7WQ8B4HHjobXVIKnCtkOMHhgN6TV0odO9HfMQX1XbjPGfroCeawu/6/9BsaIZaoey+tCCY9nPD44zJqLF5CnyrLjrBhjZd5QwFXmdUvgHcvwOGxRU+eWQZxRucHhwY8kbWHcktK1/ceflrBB9lust9Cv/hEpaacKMXKfq0ilMDYYp6UP/i3kQ3qz/rvnZcBQuTEE18THkzWXxOmhmrehbdcY4OlqZL2GS8kiOUVLh1VP4BEwTvMbT145JkohKuujXzsjBLnB2H+U7LZ4UgIhh1ktXg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645241923; bh=2xkEa4fgIucNcDqmIThUax0LPe+GaXEMr4iCoBvm4Tz=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qsC1Ymv3yHR/NpuGGX2LpZqfYilkTculMTjhKrIx4opFE4GRX18glI7T3S85UCza9LS2EjcOYE5W7LSyBdv1YBJSgeEDbLCEPZSSEINqebW+UJdY63JbNsnnsw4Eo4J/GqVJCoLCMtTFrwFOol4Hh8eQmcipGwGM6iFRgsHLUkT+HooCJPKLfyxjHMvjGSIN21xCRDfaKZgnuJnuKQrooZLrHNU36aCdjTexlhhLIGimOHnILgpZ9QVWH7ZLlxi/q5t9B8QeEWWxWPcSUzh0l/wpfDdJU9/mwG74/EGT859KBkCXS1nhS0yKunqLp8P0ZC3ycwWf0OfKF7VbyQs6WA== X-YMail-OSG: w28PgO4VM1m8xOYeFWarpksuuzYTLKP2m.r1QuyHfa6VCfLECb8fxUUzYTsKRvU K8FBICgx6FUKh_61qTLdKm8w4hZFLl6iXYruqEgx8EO1EkLkr9Ol7ULWCYaH72YeHdUnaSLi7PIA UBUwuRao6E63WSHAFsS1G9xeCRBKVtRcPZqJUnrpgu8F_Px.U2bJ_x9GObTsGTH1bqIdh5Dzs1XQ jjxxRCIomLL1ub4NHjSuR9Eulh58Zz7zJ30tXavVPrD8P8OdPGD5UTirS_9lrR.CUw1FmyWY888u tqKWdJCZQv72TyHV6NBVCkqwzJtjAy8YBjIRTfbtryOQMABcjG0AgIMlvZRDdihxzlQwaoqMzgnO XRwo1.x49uO9NvrVW1Mkjg81X9E9LxeDuW3kk9bwcOHsvj8WYrpK.3TJ3NVLQrpanO5XRNAlLwIx mxFT8WlHK3W8znBbxZLjAwu837WhvC.ytQ8DHZ0YfGxkEldAIO3HYNGZs7lS7vhA9HZQq8TFsvNX tHIQiNMHbFFYodc9ARo74VbY14zlM4EUQ8wWC1hYyt32Ht6S7WnrWAXx2W6blEd7.gDmpZYx7OaW vanjoFst5OjjeRefVQ0k.VXrCHKW1DbIIUA6ftJAg3dMoHmCznDydOdAutO845w7vsLCSEzElsBz a6PrMsH3TtnIJLaisXabDAbdpBPRPtj38jbmMbEo_BAFOy_c_P03YwbLf08cW8rjr1BGAaG7wMu9 AsyTfeGlYVdwDZh.Ns7mM2dziuarH7ANNTdtHAmSCuwp73XYO_1.O8ei49pMzOxbwXYMj8ydqLex fF3QtoVDc0RQNJ.sxQLqWHarZUUUlUCpFJMrSqVXNS X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 19 Feb 2022 03:38:43 +0000 Original-Received: by kubenode513.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 28da162404b9e792c56547bf4cef9641; Sat, 19 Feb 2022 03:38:39 +0000 (UTC) In-Reply-To: (emacsq via Users list for the's message of "Sat, 19 Feb 2022 03:21:27 +0000") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.148; envelope-from=luangruo@yahoo.com; helo=sonic309-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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135987 Archived-At: emacsq via Users list for the GNU Emacs text editor writes: >> Indeed, GTK is cross-platform and available for Linux and other >> systems as well. > Right, so would it be advantageous for emacs to use the same code for > graphic UI on every OS, or is there something which emacs can > currently do by accessing the native APIs directly which cannot be > done via GTK? It isn't available on Haiku and doesn't work very well on MS-Windows, macOS, and even GNU/Linux. For example, it crashes during a display disconnect, fights with Emacs over the size of frames, it cannot utilize selections when connected to multiple displays, correctly position frames on X, warp the mouse pointer, and so on and so forth. The only use for GTK is to support window systems that we don't otherwise support, such as Wayland and Broadway. Otherwise, using that window system directly will almost certainly lead to a better user experience.