From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: The rabbit hole that is HiDPI... (empty menus / bug#31223 et al) Date: Wed, 27 Nov 2019 18:00:24 +0100 Message-ID: References: <7fa939cb-0af6-0450-6e9f-619f404b6a87@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="45456"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Tobias Bading Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 27 18:05:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ia0kb-000Be6-1m for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2019 18:05:13 +0100 Original-Received: from localhost ([::1]:40614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia0kX-0001M8-CY for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2019 12:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35387) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia0g4-0008UC-Gh for emacs-devel@gnu.org; Wed, 27 Nov 2019 12:00:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia0g2-0007v9-EH for emacs-devel@gnu.org; Wed, 27 Nov 2019 12:00:32 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:39983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ia0g2-0007rd-8E for emacs-devel@gnu.org; Wed, 27 Nov 2019 12:00:30 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id c14so2931345wrn.7 for ; Wed, 27 Nov 2019 09:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=CBXv+ZfK+Eo0GDosTC4tTjKJk6v6SBTlzNJ053e5zCg=; b=OkZaoXys/VfyqmnN+85wd0I1qbs0cRDd6biTNRqASd5Uza7KSvw6qYJLM6rChqdD2H sHIN2etZe9NQnpbfHgOpLC1E6NhmJazPw+EK/YHgEByv1mJemckZI2OXXV+VSJOkXx30 /51qTg2mmKH+6p1/fiYOoncp8i68VSSHSuHo2MU6aQpDRjAKz2y/8LEI6bukIxw+vKeV VHTU/+E2GpNdmP+vKdSu9ShGQpASxNE5x/XAx8EiKqNGBa8iVzsN41WApKHaYA5KwIQA yugSGbgX92yP3cNao/ZXyd7ECZr/w6Ib6UDJvNnhkBu/ZGv0+ggiLK1pOvqQvfsygOfn GbZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=CBXv+ZfK+Eo0GDosTC4tTjKJk6v6SBTlzNJ053e5zCg=; b=YnIDW/eC6LD6DLv766SNkzYj3hBU1ea+kTDAZ4DTe4WGKbHWxy7WOTqQJo92khOeF7 /kMPFTASY52bp0rKYR0UJjr8lktchJNHMccmsJfrAu/xzeGV6FPwwssJsgizYjnSpBOI HvMIZeFQUFgUyu09Bt6JXvmv4EJsb7aoRnHEDvlRQqjzeOxff1hU0+knxBpoQ5g3mk5H XnzdB0kJbfj+xigpIUxc9wi4Z3+EKtdjlm9pCMW7RMDh2pPGGU9tsFjUY4foX2spbWvM 0ydN5d9te61QA5rYwYcs7/qoaSDUyzffYq/8xGgBqiQtS7m7Ndu9Cv+Tte12zXu0kc+5 mm0A== X-Gm-Message-State: APjAAAWPDoynMWz0igSX1rxRQGQbMZphhl1oKgwW1UlBLmCbcPuKTaHj XrVD26/LOMeNgbP3bvkIpIhz6Ka7 X-Google-Smtp-Source: APXvYqw7DZ9C54a6MtpbLKCQ9UdYA6VnC9/5DQLqZPEtQSGSU3kTKtjdqBZ8hqxLCqLnbAygVGFhoA== X-Received: by 2002:adf:90d0:: with SMTP id i74mr41580365wri.298.1574874027473; Wed, 27 Nov 2019 09:00:27 -0800 (PST) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:6dee:4697:b3c4:4ce5]) by smtp.gmail.com with ESMTPSA id l10sm21570564wrg.90.2019.11.27.09.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 09:00:26 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: (Tobias Bading's message of "Wed, 27 Nov 2019 17:41:37 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242804 Archived-At: >>>>> On Wed, 27 Nov 2019 17:41:37 +0100, Tobias Bading sa= id: Tobias> On 27.11.19 16:12, Robert Pluim wrote: >>>>>>> On Wed, 27 Nov 2019 14:41:35 +0100, Tobias Bading Tobias> said: >>=20 >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> The menu bar problems are looking g= ood so far. >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> A "req.height *=3D xg_get_scale (f)= " was missing in Tobias> menubar_map_cb() and >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> xg_update_frame_menubar(), right af= ter calling >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> gtk_widget_get_preferred_size() for= the menu bar widget. Tobias> Plus scale >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> handling in xg_event_is_for_menubar= () et voil=C3=A0. >>=20 >> Curious that this wasn't needed before. Has something changed in GTK? Tobias> Nope, looks like a rather old bug. But it only affects HiDPI di= splays with Tobias> window scaling active (e.g. set in 'MATE Tweak' or similar in G= NOME 2/3). Tobias> People using Xrandr to scale the entire display are probably no= t affected Tobias> either. That describes my setup, although it=CA=BCs Fedora running Gnome, not MATE. Perhaps I should boot into Ubuntu to compare. Tobias> I just sent a patch to https://debbugs.gnu.org/cgi/bugreport.cg= i?bug=3D31223 I=CA=BCll take a look. >> =C2=A0=C2=A0=C2=A0=C2=A0 >> That=CA=BCs pretty recent, so your gtk v= ersion is greater than Tobias> 3.22, right? >>=20 >> =C2=A0=C2=A0=C2=A0=C2=A0 Tobias> Yes, 3.24.12. >>=20 >> And I have the same version, but have no problems with menus. Even >> curiouser. Tobias> Do you use a HiDPI monitor with a window scaling factor of 2? Yes.