From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Payas Relekar Newsgroups: gmane.emacs.devel Subject: Re: Abysmal state of GTK build Date: Tue, 23 Aug 2022 19:23:45 +0530 Message-ID: <87zgfvdpic.fsf@gmail.com> 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="24279"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 29.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 23 17:52:56 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 1oQWD2-00068A-I4 for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Aug 2022 17:52:56 +0200 Original-Received: from localhost ([::1]:53748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQWD1-0001TJ-3T for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Aug 2022 11:52:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQUXA-0003Q1-59 for emacs-devel@gnu.org; Tue, 23 Aug 2022 10:05:39 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:34687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQUWx-0004Qu-GU for emacs-devel@gnu.org; Tue, 23 Aug 2022 10:05:35 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id x19so10788692pfq.1 for ; Tue, 23 Aug 2022 07:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc; bh=qcTM72exq8uri5qaxyQBaC27r76tMt4RUsROBezga7c=; b=kyVE2TWvJUCV1mR8KcnNIarPDahwLXk7+pmf6OoNos/ziWqEZyKvo/W9Jfg7CWUNzw 9OKmn5uvZnPhaDNsUrjsxwyNUDbBZyobUXL/l1cOVdkbsvNKxUab2KSusrC9y/nIHY8V dwIicm15JzMjzqot0Zxr7BBNaU1QbKgAqVeowTMZMmjEAM9UO6MBSTagG6sTcJt5yHKT nFxU52xzwUz7i6JrhA318HHBEa/z7PX5jQcbs8PiPSv/7Mt5vSGxooTJCzdA/fXQIehq jeKkRjjkEAlTc5my2wzmihjP1zdK5f88Y7by/plwRQ9R6URvYqYQVPlAJ/75c5J1lq9a yVdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc; bh=qcTM72exq8uri5qaxyQBaC27r76tMt4RUsROBezga7c=; b=G7uAQmH7ues4RFvIuQVjTbtTNaPUxAbxWfS2UodwcFkKEhOZqg3nCDaKHpnIDxZ8uq 2UPNyoAw1BeSvPFjS6I0u2OtJMubhUYd4Yf+TDG8/8zDIrvporTbWZ9aRXI7zeLpWnvN OGeJRr899+gS8sVdqh6fpQljWZbHeCKmNrm8u9E7fMpjhYf26W8+yw2WRZUyIHB9McUu 7/0+Haj96BxvnxRjpp1UWI4uITKVyXdYsFDdQcsRfb2BDiCS9cav/bFNI7xYQuOPgJ3c /uPy4QBRW8U3VtHUnT6dHcyAMPq160iv1JFBjM3u8fhg6FQAiiMzMVTP+2LZoYGSRoqW NsoQ== X-Gm-Message-State: ACgBeo1Nq7pyVeI2RYUc/fySGHbdmfG/c5xYku4XOnhHooj5NcpyyH12 0XDoSpQhjHCLKDDl95lNAO0LwW1dBN8= X-Google-Smtp-Source: AA6agR4G+2UvLWJF/EZ9iGk8lvL5MuxgyckaCU3ClbmmpzbnOs5qUpkc89f8pl/ipYm26qD7gN14Gg== X-Received: by 2002:a63:6d42:0:b0:429:f162:58f3 with SMTP id i63-20020a636d42000000b00429f16258f3mr21061312pgc.191.1661263518701; Tue, 23 Aug 2022 07:05:18 -0700 (PDT) Original-Received: from localhost ([150.107.26.19]) by smtp.gmail.com with ESMTPSA id n12-20020a170902d2cc00b0016c29dcf1f7sm10565318plc.122.2022.08.23.07.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 07:05:17 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=relekarpayas@gmail.com; helo=mail-pf1-x430.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, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Tue, 23 Aug 2022 11:51:05 -0400 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:293896 Archived-At: Po Lu writes: > What makes you think the GTK developers will be able to dictate what > people will use? While I hope for otherwise, and this is not the place to discuss this, general trend in Linux land over past decade or so is that once Gnome blesses something as default, it tends to be blessed by others as well. > Remember that if the world revolved around their decisions, we would all > be clowns occupying a peanut gallery. :) I tend to agree here, but this discussion is veering off-topic. >> That is unfortunate. Considering HiDPI + mixed DPI support is >> non-existent in X11, I was really hoping Wayland feature bulimia to be >> solved/on-way-to-be-solved problem by now. > > Why do you think that's so? On X, the X server says nothing about the > scale of a window, screen, or the part of a screen taken by a monitor. > A program can simply rescale itself as it moves across different > outputs. > > I think the reason people think HiDPI support doesn't work on X is that > it doesn't work in Xwayland, which is strictly a problem with that, and > is not seen on bare-metal X. I only have personal experience, so apologies in advance if I miss something obvious. I use Plasma desktop (used Gnome for years before) on my laptop as no-frills feature rich Desktop Environment. I do not like messing around with Xresources and like things to Just Work=E2=84=A2. My laptop display is plain old 15" 1080p, but usually connect with external monitor (27" 4K). On X11 there is no option for external display except 1080p so all the pixels go to waste. Only on Wayland can I select 4K and different DPI settings (125% on laptop display + 175% on external). From what I've read this is fairly consistent with other people's experiences. As you mention, there is probably a way to get X11 to behave the same, but if this option is not straightforward enough to be implemented and made available by a DE as config-loaded as Plasma then we can safely consider it to be out of skill/interest of majority of computer users. >> That is fair. From what I understand Wayland support on non-Linux >> systems is still imperfect at best so X11 support is here to >> stay. But, can we have it as non-default and get away with it for the >> most part? > > No. AFAIK it was recently discovered that less than 10% of Firefox > users on non-macOS Unix systems were using Wayland or Xwayland. Good point. But this discussion focuses more on future that status quo. >> Apologies for simple (and possibly stupid) questions, but GTK >> situation has more thorns than I previously thought. Considering WSL2 >> will have more people using Emacs via Wayland/Pgtk making defaults >> more important. > > I don't think supporting the PGTK build on MS Windows is a good idea at > all. Oh no, perhaps I misspoke. WSL2 is basically a Linux VM that comes built into Windows 11. The Emacs runs on Linux, uses Linux sys-calls to talk to Linux kernel, and renders PGTK build on Wayland. The VM then uses a custom RDP to integrate Emacs window with the parent Windows OS. I only mentioned it because this particular implementation of RDP only works with Wayland natively and X11 applications are second class via XWayland. I can provide some more resources if you'd like, but generally searching WSL2 and following links to MS documentation is sufficient. Having said all of the above, I am not an Emacs maintainer. Po/Eli/Lars have much better understanding and obvious say for good reasons. I am only here to provide alternate perspective. Thanks, Payas --