From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63384: x-display-mm-width and x-display-mm-height both return 0 on wayland Date: Sun, 14 May 2023 07:59:56 +0300 Message-ID: <83lehra4oj.fsf@gnu.org> References: <307a269d4093140c20db72b1b60d57f4@gmail.com> <442c86307ca7852252e081725ae6f01f@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63384@debbugs.gnu.org To: tomasralph2000@gmail.com, Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 14 07:01:28 2023 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 1py3rL-0007TD-Ni for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 May 2023 07:01:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1py3qy-0007PM-7Z; Sun, 14 May 2023 01:01:04 -0400 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 1py3qw-0007Op-G9 for bug-gnu-emacs@gnu.org; Sun, 14 May 2023 01:01:02 -0400 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 1py3qw-0006ei-6U for bug-gnu-emacs@gnu.org; Sun, 14 May 2023 01:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1py3qw-00021o-2Z for bug-gnu-emacs@gnu.org; Sun, 14 May 2023 01:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 May 2023 05:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63384 X-GNU-PR-Package: emacs Original-Received: via spool by 63384-submit@debbugs.gnu.org id=B63384.16840404037612 (code B ref 63384); Sun, 14 May 2023 05:01:02 +0000 Original-Received: (at 63384) by debbugs.gnu.org; 14 May 2023 05:00:03 +0000 Original-Received: from localhost ([127.0.0.1]:40043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1py3pz-0001yg-2e for submit@debbugs.gnu.org; Sun, 14 May 2023 01:00:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1py3px-0001xf-44 for 63384@debbugs.gnu.org; Sun, 14 May 2023 01:00:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1py3pr-00068k-IH; Sun, 14 May 2023 00:59:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QH8muLp0qncEDdUQjlPS11m4yxmy0iJraNIWbD/ykD0=; b=sLxrpOo3moVj uOZQSImKPP5R2tnqOUj9ItqGNvLXesOxRV2H/698ObwAd/Kexrfc8jzZCGPd4jNdaiZXahU26K++D oXPQEa+42Wpc0tiEqzX1F7o2kdQM93q9ciPfJTIM25w1OlzuAJ71/pMlmmaLoNkFZqYAfraLpkHkS tGgDLVRf5TbQNb5z5Y5WERTx6R+EiHcjYJSPf+9uQX8unhgz/5NW++Gn7gIQoGq33Df2A2tZDzIGD KWwHdJg9Fry/eBUwasnYDeuwt/SjmXU0Zbi2aKr+awxgTQqtEc1KjGG7+cYjVoF9L/pSYRtiZk8b0 NE8TNoYiZVdE11/DSO7hhQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1py3pq-0004o7-Vd; Sun, 14 May 2023 00:59:55 -0400 In-Reply-To: <442c86307ca7852252e081725ae6f01f@gmail.com> (tomasralph2000@gmail.com) 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:261699 Archived-At: > Date: Sat, 13 May 2023 22:32:09 +0000 > From: tomasralph2000@gmail.com > > So, back to emacs. Maybe it should be fixed on this side? I personally made a workaround in the > meantime that checks if these functions return 0, and if they do, they override the pgtk function that > returns the display info, calculating the proper values for the mm size. It works great. You can find it > here, in case anyone finds it useful. If we can have a reasonably useful fallback on our side, I think we should add it. AFAIU, this problem also exists on the emacs-29 branch? If so, I think we should add this fallback, if it is reasonable, to the emacs-29 branch soon.