From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tobias Bading Newsgroups: gmane.emacs.devel Subject: Re: The rabbit hole that is HiDPI... (empty menus / bug#31223 et al) Date: Wed, 27 Nov 2019 13:29:32 +0100 Message-ID: <7fa939cb-0af6-0450-6e9f-619f404b6a87@web.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="214417"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 27 13:35:21 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 1iZwXR-000tcq-Bi for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2019 13:35:21 +0100 Original-Received: from localhost ([::1]:37694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZwXQ-000628-01 for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2019 07:35:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55188) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZwSB-0004xi-6i for emacs-devel@gnu.org; Wed, 27 Nov 2019 07:29:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZwS4-0006YK-8M for emacs-devel@gnu.org; Wed, 27 Nov 2019 07:29:51 -0500 Original-Received: from mout.web.de ([212.227.17.11]:45657) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZwS2-0006Qk-Ax for emacs-devel@gnu.org; Wed, 27 Nov 2019 07:29:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1574857783; bh=mr7+80Z4RGKaeU9CTFIdQeLHtsLHbnjyos6H95HwDpg=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=TubDimJwXu3ov0q2eAsvZjT8Su1ndowV4pSHq5gnDJAa+t3e6nC3dCJN8BHLlkHGU 7+duv+A/WQBnOoFz2wU36w0gYX7/INYSG2TCnYvV7VbFKxHx/yB6tGptGNiMh1tosa +XTKpDAkT9//AB56x9s7B+55EUO0lXax3+COX14w= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from [192.168.2.103] ([84.143.156.184]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Marpe-1iFWBh1uUk-00KN45 for ; Wed, 27 Nov 2019 13:29:43 +0100 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:zqbixlawRu6Gmk2Bgy3KMS5fLH+e9EZDdBi+/xglTs8aBhoOBa+ F741A6w5g3W7mUqwKWI6Kb0GQbeIbpai07KtX7+i9qhWzqf+85NYx4JxnmkXseMkKclXCA5 DY4msdC0KcjZvVJnh6oh7FxrDTqc2pnLzMlIW1jYJuw8p+3kMD8d6Fyj1z6bdInk57atTDI JxT+D9HIl9MJuB3F+9qrg== X-UI-Out-Filterresults: notjunk:1;V03:K0:2lo06cSx1Bg=:7Cz9VIklRB2RwtcC4UUBAA FkpwG9Pv9FSQfeDcW6n1tsckl8xm6uN/0m4rs+gncG6Pfz4QhPgaF0R/E8j/Jt0IwcBdG8XY7 zKaebvcTSkUVdZlpLXZUC+W8fs4azm1wqBR7CRCt3Xe9CzlqQxvFy9ZZ6cImW2R7utiMiy37J 1z/dASu8DUcKaVV/3MBMZ2WNoK0Hagxe3FQyf6ANNHtpPm7IPAh4DSgqKZxDr8/99d/1VylHU zMsQWyxhyHc46J+31dsJzX8pQ5UuCpUQWPC8BaoIC4K1It6lcrsef0m/NSbgIuThfvDfPvGpI Yma/KRAqn0AxkxDZMzup8ZyESMUwm6byNWeK2/9nK4VI61nHNe9A8JoF3c10fVdjNqydx38+r GLbhp5YN0X2egetsBTZ3bKMU6bJoiMm9Eaf3xgVsWAV02WU3emzDfoUOWntp831mLL3wXk+3y BrK1xkkGh29+MGncBzLEGzJoKMeh1nDST9WEgEg2FmbhZ/vd/Rgb7i7r9h2YmsHNuTGF//a9w qy7hy5pcXo0aCpy3//IvBgGafDhuJpQsD4uW/mB6UrbikwQpZEi3omBsbIGRRT8+UOHTSaUb6 yejO9HKO0+vbDcH8PzjlS824IrxVj4WvCz2x5d/nmDbrQqxyhgaDXXUclk6xxZ/b31o7LXRsE sqXwK4zigE2MPhutn2TIW36PVForNK4VlYEtUkZGO/qfuMdYnd1f3Pd23ZG2c5KwEDiXFBq9j 132RG9HXqVpGuB2wb3KbDD9jD2dtoFr94AhJcRMLhINNgcVdAmUj+9h0TfUTWQKZXLeU+EbJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 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:242784 Archived-At: On 27.11.19 12:30, Robert Pluim wrote: >=C2=A0=C2=A0=C2=A0=C2=A0 Tobias> But seriously... what would be the prop= er way to deal with HiDPI in >=C2=A0=C2=A0=C2=A0=C2=A0 Tobias> Emacs? Has anyone done any work on this= ? > > xg_get_scale(). And yes, which is why my hair is turning grey. Thanks, already found it. No comments on the color of my hair... ;-) > Yes, if you have scaling in GTK the number of pixels as seen by GTK is > scaled up or down. Unfortunately too much code in Emacs still works in > device pixels. Who will rid us of this turbulent mix of X and GTK? I'm trying to fix the mix.;-) About to test whether two "req.height *=3D xg_get_scale (f);" in gtkutil.c improve things. (frame-monitor-workarea) is incorrect on my machine, too. Top is half of what it should be. > BTW, which distribution and desktop environment is this? Ubuntu xx > with Gnome? Ubuntu MATE Eoan. > PS. You might have more luck with emacs-27 and 'configure > --with-cairo' Thanks for the hint. I'll give it a try when I have a patch that fixes my current problems in 26.3. Tobias