From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar Date: Thu, 14 May 2015 14:33:29 +0200 Message-ID: <55549619.6010503@swipnet.se> References: <5554883A.9060501@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1431606864 5659 80.91.229.3 (14 May 2015 12:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2015 12:34:24 +0000 (UTC) Cc: 20432-done@debbugs.gnu.org To: "Felix E. Klee" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 14 14:34:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YssL4-00020t-OA for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 14:34:10 +0200 Original-Received: from localhost ([::1]:54347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YssL4-0002tu-58 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2015 08:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YssL0-0002tb-Nu for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 08:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YssKw-0008FO-Lj for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 08:34:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YssKw-0008FJ-I5 for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YssKv-0001HN-Uf for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 08:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2015 12:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20432-done@debbugs.gnu.org id=D20432.14316068194889 (code D ref 20432); Thu, 14 May 2015 12:34:01 +0000 Original-Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 12:33:39 +0000 Original-Received: from localhost ([127.0.0.1]:44580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YssKY-0001Gm-Uh for submit@debbugs.gnu.org; Thu, 14 May 2015 08:33:39 -0400 Original-Received: from mailfe05.swip.net ([212.247.154.129]:40466 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YssKW-0001GS-Rn for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 08:33:37 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 591774489; Thu, 14 May 2015 14:33:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102776 Archived-At: Den 2015-05-14 13:59, Felix E. Klee skrev: > On Thu, May 14, 2015 at 12:34 PM, Jan Djärv wrote: >> This GTK feature is very poorly designed. > > HiDPI scaling works beautifully in various other GTK+ 3 applications. I'm sure it does, but the world is bigger than Gtk+ 3. > >> We can not support it correctly, as we don't use Gtk+ exclusively. > > Thanks for the explanation. > >> Also, the Gtk+ code blindly multiplies anything with GTK_SCALE. So for >> example, given GTK_SCALE=2, if we have font size 15, it becomes 30. > > That is what `GDK_DPI_SCALE` is for. Example: > > export GDK_SCALE=2 > export GDK_DPI_SCALE=0.5 That does not help. For WM hints, Gtk+ uses GDK_SCALE. GDK_DPI_SCALE is only used for scaling Xft fonts. Anyway, multiplying with 0.5 or divide by 2 is the same for integer arithmetics. An alternative would be for Emacs to multply font sizes with GDK_SCALE. I think that might be tricky, but I will check. > >> So there will be glitches, live with it. > > It’s not for me. I set up a HiDPI machine for a friend who’s turning > eighty this year. While he has great vision given his age, some UI > elements are just too small without scaling. They are barely visible. > > This is a big issue, not something that should be ignored. Get access to > a HiDPI screen, and you’ll see what I mean. I have three already. Jan D.