From unknown Thu Sep 11 20:49:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20432 <20432@debbugs.gnu.org> To: bug#20432 <20432@debbugs.gnu.org> Subject: Status: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar Reply-To: bug#20432 <20432@debbugs.gnu.org> Date: Fri, 12 Sep 2025 03:49:06 +0000 retitle 20432 GDK_SCALE=3D2 GDK_DPI_SCALE=3D0.5 destroys GTK+ 3 scroll bar reassign 20432 emacs submitter 20432 "Felix E. Klee" severity 20432 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 13:27:08 2015 Received: (at submit) by debbugs.gnu.org; 26 Apr 2015 17:27:08 +0000 Received: from localhost ([127.0.0.1]:40590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmQKh-0002ha-K3 for submit@debbugs.gnu.org; Sun, 26 Apr 2015 13:27:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36329) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmJNn-000851-W4 for submit@debbugs.gnu.org; Sun, 26 Apr 2015 06:01:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmJNh-0008WN-Tw for submit@debbugs.gnu.org; Sun, 26 Apr 2015 06:01:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmJNh-0008WD-Qe for submit@debbugs.gnu.org; Sun, 26 Apr 2015 06:01:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmJNg-0004K1-OT for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2015 06:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmJNd-0008VG-HX for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2015 06:01:44 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmJNd-0008UJ-CS for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2015 06:01:41 -0400 Received: by pacwv17 with SMTP id wv17so74824172pac.0 for ; Sun, 26 Apr 2015 03:01:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=ylQY3hINRi5gCtDRZ1ZaZHmmAbIfXZbCvzN5edNwRio=; b=Jvb/5Qdzzr6V+jwV2vsrgGj4qz31DMyff9Pk1JTctTYYaIf7I6fBXKWrWB+L19Jo1N gjCeS0t6IVOpvYA+t7XPIZcONSTc/KVaSuf25ecyUWHxz3s94rbZ4Ow+k/AfXLEbqc9a 2L+vPLXifQuNdrH+4kBfM7Mkt4uOubvHs0tpiEcHu5o0v+GDPcf8JQBUJAGFuyTZKflu ubkD5QRr4nxhdnNvRBY03cMS69hv1QGp6YFqy4FnmVTqrPG6qYw5i7Zv1fxrWgY4LeUr tIstluoTvsn6YXEspqxlVEujiHHwY1SCSWJyCjVCX++Yy9XRDIupqcgASLIR2SpuahFS BH0w== X-Gm-Message-State: ALoCoQkiYqrw3amG5ZQZMGbBhmkKsGMQBEuIhSWSMyjoh8kn6FVV8V5Xb8UQACySDG1/MdyfYj6l X-Received: by 10.68.102.161 with SMTP id fp1mr12556274pbb.64.1430042499916; Sun, 26 Apr 2015 03:01:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.149.193 with HTTP; Sun, 26 Apr 2015 03:01:09 -0700 (PDT) X-Originating-IP: [213.143.50.66] From: "Felix E. Klee" Date: Sun, 26 Apr 2015 11:01:09 +0100 X-Google-Sender-Auth: fSl8kPnrcGmQMJsLuQO39WeABks Message-ID: Subject: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Apr 2015 13:27:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I'm running Emacs on high DPI screen, and for scaling icons and other UI elements in GTK+ applications, I've set in the environment: GDK_SCALE=2 GDK_DPI_SCALE=0.5 This, however, confuses EMACS: The scrollbar gets squished. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11701000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Quit Making completion list... Quit scroll-up-command: End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 74597 8753) (symbols 48 17662 0) (miscs 40 64 138) (strings 32 9283 4419) (string-bytes 1 253558) (vectors 16 8988) (vector-slots 8 384078 17367) (floats 8 64 222) (intervals 56 183 16) (buffers 960 13) (heap 1024 24992 889)) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 17:11:29 2015 Received: (at 20432) by debbugs.gnu.org; 26 Apr 2015 21:11:30 +0000 Received: from localhost ([127.0.0.1]:40687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmTpp-0002I6-IP for submit@debbugs.gnu.org; Sun, 26 Apr 2015 17:11:29 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33449) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmTpn-0002Hs-0x for 20432@debbugs.gnu.org; Sun, 26 Apr 2015 17:11:28 -0400 Received: by pacwv17 with SMTP id wv17so85377557pac.0 for <20432@debbugs.gnu.org>; Sun, 26 Apr 2015 14:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=b2LwF1INz65PRoridf0qyXEjptijNjnyjzwi8kr1TZ8=; b=Kb2dnwrsJvMkQeL0HSBdLF1UB7uNB2+IqinOX4bPP/DIuHs98gftSObeUblLLKp51U GuPBlUOTZ1Y/tcSbn2qmbhXKPBjbyZVfgUA1Q47VTrLhO0XR5mEHo6xO0hC5cfvC6fXR Zk1qbcnAJqfJ95DqF1lnHEn7Emcq9/OjYKojjHhHew3t416kG5/E8kMZYpd/sJ/7NYjx 6pewXHby7Y9r4zWjGjDi3LdyW6ov7dazQAkYvRhXFo2EYl1M6dUMNyuGGVM3JBJ6w+/y YNlBOhBAesW9XAR2LClFgEB8GarA2zBbIpor23xqeFcUnbW962boVcGyeMANcroq/iPq GUvw== X-Gm-Message-State: ALoCoQmsGMbkQKM1CmXdChPwq0Te8D0D30AZHZSh9fukZdbh8YPjb2cZVdCnnSAu2zLHaMPdAVDz X-Received: by 10.70.90.209 with SMTP id by17mr14736534pdb.2.1430082681261; Sun, 26 Apr 2015 14:11:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.149.193 with HTTP; Sun, 26 Apr 2015 14:10:50 -0700 (PDT) X-Originating-IP: [213.143.50.66] From: "Felix E. Klee" Date: Sun, 26 Apr 2015 22:10:50 +0100 X-Google-Sender-Auth: RaUAJ-iTRzb9iGPA3g_SlJVsXk0 Message-ID: Subject: Further information (plus 1/2 workaround) To: 20432@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20432 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) See also discussion in Arch Linux Forums: From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 07:34:30 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 11:34:30 +0000 Received: from localhost ([127.0.0.1]:44487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsrPJ-0008CQ-9f for submit@debbugs.gnu.org; Thu, 14 May 2015 07:34:30 -0400 Received: from mailfe01.swip.net ([212.247.154.1]:54411 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsrPG-0008C9-Q6 for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 07:34:28 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 579181819; Thu, 14 May 2015 13:34:18 +0200 Message-ID: <5554883A.9060501@swipnet.se> Date: Thu, 14 May 2015 13:34:18 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Felix E. Klee" , 20432-done@debbugs.gnu.org Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20432-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi. Den 2015-04-26 12:01, Felix E. Klee skrev: > I'm running Emacs on high DPI screen, and for scaling icons and other UI > elements in GTK+ applications, I've set in the environment: > > GDK_SCALE=2 > GDK_DPI_SCALE=0.5 > > This, however, confuses EMACS: The scrollbar gets squished. This GTK feature is very poorly designed. We can not support it correctly, as we don't use Gtk+ exclusively. There is a race between Gtk+ and the window manager and Emacs that will result in different frame sizes on frame creation. Sometimes its the default size (80x34), sometimes its twice as big. 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. But in order to compensate for this multiplication we need to divide with 2 before passing sizes to Gtk+. So 15 becomes 7 (integer division), which Gtk+ turns to 14. So there will be glitches, live with it. But at least we draw things correctly in the trunk now. Jan D. > > > > In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) > of 2015-04-20 on bitzer.hoetzel.info > Windowing system distributor `The X.Org Foundation', version 11.0.11701000 > System Description: Arch Linux > > Configured using: > `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --localstatedir=/var --with-x-toolkit=gtk3 --with-xft > 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 > LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' > > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: Fundamental > > Minor modes in effect: > tooltip-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > buffer-read-only: t > line-number-mode: t > transient-mark-mode: t > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Making completion list... > Quit > Making completion list... > Quit > scroll-up-command: End of buffer > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message idna format-spec > rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums > mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date > tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel > x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list > newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer > select scroll-bar mouse jit-lock font-lock syntax facemenu font-core > frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai > tai-viet lao korean japanese hebrew greek romanian slovak czech european > ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help > simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp > files text-properties overlay sha1 md5 base64 format env code-pages mule > custom widget hashtable-print-readable backquote make-network-process > dbusbind gfilenotify dynamic-setting system-font-setting > font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) > > Memory information: > ((conses 16 74597 8753) > (symbols 48 17662 0) > (miscs 40 64 138) > (strings 32 9283 4419) > (string-bytes 1 253558) > (vectors 16 8988) > (vector-slots 8 384078 17367) > (floats 8 64 222) > (intervals 56 183 16) > (buffers 960 13) > (heap 1024 24992 889)) > > From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 08:00:19 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 12:00:19 +0000 Received: from localhost ([127.0.0.1]:44534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsroI-0000PJ-3U for submit@debbugs.gnu.org; Thu, 14 May 2015 08:00:19 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:34795) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsroC-0000OL-N8 for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 08:00:15 -0400 Received: by pdbqa5 with SMTP id qa5so84400326pdb.1 for <20432-done@debbugs.gnu.org>; Thu, 14 May 2015 05:00:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=UDaMIK1eB+oD8Ac3C21Sr5ojqak0hOo62aosvUknR9g=; b=ddcD98eo2oM5RPuNLtWpeXZnF2Hdmr9nmok/WYIcDZeYjc1WdCFUt8n4fdEHN8xcok wJaWQ5FagDXN4R/bXdf03+b5MQIEzfC6fzWVpAj2VGdCoqgiaKppRXYYffcn9M73F1SR Kzj4JSwuYbKfVVqNswYqCOA6Sutc9P3ef1t2Asei1kktnMDHH84bURuc4YHwL6Sjam9h H8/cKlKixakN2HuzLEoAyCXcC0oRNNfG5Hx6ep8MjEmEO/4dv3SwcV6UyEbg+f9bwsJV yw4ugDd5J7i72obTwkLwqdlRehP7o/SvkNIbysaU4cBqanRVjr9jWq3AztHB9gDd9jAm JBmg== X-Gm-Message-State: ALoCoQnTYlQWCdWvIYKzzVm2y4htUfyuu2Uf0lt7TF0M4oy6CCXtZOc3NHUEIIf04mg+FnEF7fFO X-Received: by 10.70.90.209 with SMTP id by17mr7471089pdb.2.1431604806706; Thu, 14 May 2015 05:00:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.149.193 with HTTP; Thu, 14 May 2015 04:59:36 -0700 (PDT) X-Originating-IP: [90.174.2.67] In-Reply-To: <5554883A.9060501@swipnet.se> References: <5554883A.9060501@swipnet.se> From: "Felix E. Klee" Date: Thu, 14 May 2015 12:59:36 +0100 X-Google-Sender-Auth: sM4Px7m6a79ngog2CfjhYJnmAwQ Message-ID: Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar To: =?UTF-8?Q?Jan_Dj=C3=A4rv?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20432-done Cc: 20432-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, May 14, 2015 at 12:34 PM, Jan Dj=C3=A4rv wrote= : > This GTK feature is very poorly designed. HiDPI scaling works beautifully in various other GTK+ 3 applications. > 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=3D2, if we have font size 15, it becomes 30. That is what `GDK_DPI_SCALE` is for. Example: export GDK_SCALE=3D2 export GDK_DPI_SCALE=3D0.5 > So there will be glitches, live with it. It=E2=80=99s not for me. I set up a HiDPI machine for a friend who=E2=80=99= 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=E2=80=99ll see what I mean. > But at least we draw things correctly in the trunk now. Great! From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 08:33:39 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 12:33:39 +0000 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 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 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 Message-ID: <55549619.6010503@swipnet.se> Date: Thu, 14 May 2015 14:33:29 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Felix E. Klee" Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar References: <5554883A.9060501@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20432-done Cc: 20432-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 08:47:04 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 12:47:04 +0000 Received: from localhost ([127.0.0.1]:44584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YssXX-0001b3-Sk for submit@debbugs.gnu.org; Thu, 14 May 2015 08:47:04 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:34005) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YssXU-0001aW-Sr for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 08:47:01 -0400 Received: by pdbqa5 with SMTP id qa5so85805496pdb.1 for <20432-done@debbugs.gnu.org>; Thu, 14 May 2015 05:46:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=2RHInuFk3mtGAJNUPDPwLGI9kz7XC8EkgHsHSPdlCH4=; b=aCFfl4vnTJob4/heWOMuAApFq3JfpyujLQ7gJoQvnWeu+A6zJpTwnDHL/aRKgx8NZO 6uMbOq6BA3dhc18nYf/xn6hvWAmd9GehZwEDIwHRZWFt6RXfHaiep4A/dDhquCl8LOLa kaYf6P8pgrs60B+bKs8yE+lPkvX1bXSfdotOB6sbZ4qYNmC5nyj1nrjYZSPHR3H/+CWh sLVAqIv0SL9uxWtgkGeLLABnZw5r3s484U8n3izPJxEOTxXh+eL4B6afkw6GKu1jHEGo t86ZCXpwxyOIK8vPNtlOrT1IC/lB2tmtEcaYZ/mhKlw1azhwvmcuGzzm7vaQ4cKB2ACq 3/uA== X-Gm-Message-State: ALoCoQme2R/zE8ZTMXM1NfOk+54YSj2Dwvg81j1/kFgxAxGgESwolxJXikoPiS7lAnsVLgONkjQA X-Received: by 10.66.120.176 with SMTP id ld16mr7808606pab.17.1431607596351; Thu, 14 May 2015 05:46:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.149.193 with HTTP; Thu, 14 May 2015 05:46:05 -0700 (PDT) X-Originating-IP: [90.174.2.67] In-Reply-To: <55549619.6010503@swipnet.se> References: <5554883A.9060501@swipnet.se> <55549619.6010503@swipnet.se> From: "Felix E. Klee" Date: Thu, 14 May 2015 13:46:05 +0100 X-Google-Sender-Auth: E1RWm2HUeEweV2p5kKJVVnz2xsc Message-ID: Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar To: =?UTF-8?Q?Jan_Dj=C3=A4rv?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20432-done Cc: 20432-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, May 14, 2015 at 1:33 PM, Jan Dj=C3=A4rv wrote: >> That is what `GDK_DPI_SCALE` is for. Example: >> >> export GDK_SCALE=3D2 >> export GDK_DPI_SCALE=3D0.5 > > That does not help. For WM hints, Gtk+ uses GDK_SCALE. OK. BTW on the system I=E2=80=99ve set up I position and resize windows wit= h the WM (FVWM), and there are no issues with `GDK_SCALE`. If I specify that a window should be sized 2000 =C3=97 1000 px, then it=E2=80=99s set to that s= ize. `GDK_SCALE` only affects the contents of the window. > Anyway, multiplying with 0.5 or divide by 2 is the same for integer > arithmetics. 0.5 is not an integer. ;-) > An alternative would be for Emacs to multply font sizes with > GDK_SCALE. Why bother? Don=E2=80=99t fonts get rendered via the GTK+ API? From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 09:13:13 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 13:13:14 +0000 Received: from localhost ([127.0.0.1]:44588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysswr-0002EV-G5 for submit@debbugs.gnu.org; Thu, 14 May 2015 09:13:13 -0400 Received: from mailfe04.swip.net ([212.247.154.97]:54099 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysswo-0002EE-QG for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 09:13:12 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 594631196; Thu, 14 May 2015 15:13:03 +0200 Message-ID: <55549F5F.6050903@swipnet.se> Date: Thu, 14 May 2015 15:13:03 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Felix E. Klee" Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar References: <5554883A.9060501@swipnet.se> <55549619.6010503@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20432-done Cc: 20432-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Den 2015-05-14 14:46, Felix E. Klee skrev: > On Thu, May 14, 2015 at 1:33 PM, Jan Djärv wrote: >>> 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. > > OK. BTW on the system I’ve set up I position and resize windows with the > WM (FVWM), and there are no issues with `GDK_SCALE`. If I specify that a > window should be sized 2000 × 1000 px, then it’s set to that size. > `GDK_SCALE` only affects the contents of the window. That is true, and part of why this is a half-baked solution. xrandr --scale works fine for me, no need to fiddle with per application settings. Also, it works fine to plug in a non-hidpi monitor and move apps from one monitor to another. GDK_SCALE absolutely breaks that. > >> An alternative would be for Emacs to multply font sizes with >> GDK_SCALE. > > Why bother? Don’t fonts get rendered via the GTK+ API? Gtk+ is only used for the tool bar, menus and scroll bar (more or less). Gtk+ is not a requirement for Emacs. Anyway, its a lot of work. A lot of Emacs internals needs to know the font size and the scaling needs to be applied in many places. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 10:05:09 2015 Received: (at 20432-done) by debbugs.gnu.org; 14 May 2015 14:05:09 +0000 Received: from localhost ([127.0.0.1]:45114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ystl3-00057J-Oc for submit@debbugs.gnu.org; Thu, 14 May 2015 10:05:09 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:35285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ystkw-00056h-WB for 20432-done@debbugs.gnu.org; Thu, 14 May 2015 10:05:02 -0400 Received: by pdbqd1 with SMTP id qd1so88063104pdb.2 for <20432-done@debbugs.gnu.org>; Thu, 14 May 2015 07:04:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=xtppOx7FuR7gWfgWFHYZ5gRheXAMaYj31U1dq5PZRhQ=; b=eZ6GJIWmFetfHAboMchByJWTig/3VrWnHypLld+pQvYYnBTWCeKOqEcAu4kibA3q8j 4tTDBYlZxoCpwdg4gE15CxFbD6gCj4DqV6abkqRXsZD/3LjSabNDAHXwxAj70nzRXVwJ 7MdxLkr/zUgObkJJPQyy5mFcnoHGOJYYYR8ZybJxBjfyPTl4ffDcVXJc46OHnoFw3KcE dQENbTD8bkXYXx/coZDuoDZol3qsI8AH+qxOJrAbqDjVcG5BEEz0ck+c6D+e8hsDOYjF UANkWBOdWBv88IJVB41hhEinHwjZWoa89BwfynqHkRV/zvwkaPsvr7W++mD/LH4Q6t3R TOmA== X-Gm-Message-State: ALoCoQnZxBklFVBNkOLqDx7rf8UQVDNPPWoeYyma3RlPaIddDUUni3+n6mMbruTse4PvzrQ0K5qi X-Received: by 10.68.108.65 with SMTP id hi1mr8317195pbb.129.1431612293057; Thu, 14 May 2015 07:04:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.149.193 with HTTP; Thu, 14 May 2015 07:04:22 -0700 (PDT) X-Originating-IP: [90.174.2.67] In-Reply-To: <55549F5F.6050903@swipnet.se> References: <5554883A.9060501@swipnet.se> <55549619.6010503@swipnet.se> <55549F5F.6050903@swipnet.se> From: "Felix E. Klee" Date: Thu, 14 May 2015 15:04:22 +0100 X-Google-Sender-Auth: XfQwsZxSEyz7rcs52rlbehOlC18 Message-ID: Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar To: =?UTF-8?Q?Jan_Dj=C3=A4rv?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20432-done Cc: 20432-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, May 14, 2015 at 2:13 PM, Jan Dj=C3=A4rv wrote: > xrandr --scale works fine for me, no need to fiddle with per > application settings. Well, that=E2=80=99s what I call a half-baked solution: It means you turn y= our screen into a standard-DPI one. For scaling old apps, I wrote Vncdesk: Another option to make EMACS compatible with HiDPI could be to use a high resolution icon theme. At the moment, I=E2=80=99ve set `GDK_SCALE=3D1`= , and I scale the toolbar: I assume other elements can also be scaled. Almost invisible at the moment are for example checkboxes in `customize`. From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 12:38:32 2015 Received: (at 20432) by debbugs.gnu.org; 14 May 2015 16:38:32 +0000 Received: from localhost ([127.0.0.1]:45273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysw9X-00044x-Tj for submit@debbugs.gnu.org; Thu, 14 May 2015 12:38:32 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:51807) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ysw9W-00044W-13 for 20432@debbugs.gnu.org; Thu, 14 May 2015 12:38:30 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id BCA9AA60001; Thu, 14 May 2015 09:38:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nun7IWbYsLGx; Thu, 14 May 2015 09:38:23 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 5337F39E8015; Thu, 14 May 2015 09:38:23 -0700 (PDT) Message-ID: <5554CF7B.7090306@cs.ucla.edu> Date: Thu, 14 May 2015 09:38:19 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?SmFuIERqw6Rydg==?= Subject: Re: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20432 Cc: "Felix E. Klee" , 20432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Thanks, Jan D., for looking into the problem. It does appear to be a mess. In theory I suppose Emacs should use gdk_screen_get_monitor_scale_factor to get the monitor scale factor; but in practice the situation is so messed up (and a lot of work would be needed to fix it) that it might not be worth bothering. By the way, on my Fedora 21 x86-64 host, setting GDK_SCALE=2 GDK_DPI_SCALE=0.5 has no effect on emacs -Q, even with the recent fixes. Perhaps this is due to the races you mentioned? I installed a minor followup patch to catch some integer overflows (I realize GTK+ can crash in those cases and that other integer overflows are possible in Emacs, but one thing at a time....). From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 13:57:33 2015 Received: (at 20432) by debbugs.gnu.org; 14 May 2015 17:57:33 +0000 Received: from localhost ([127.0.0.1]:45325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsxO0-0007cN-K0 for submit@debbugs.gnu.org; Thu, 14 May 2015 13:57:32 -0400 Received: from mailfe03.swip.net ([212.247.154.65]:44965 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsxNx-0007c9-N1 for 20432@debbugs.gnu.org; Thu, 14 May 2015 13:57:30 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 429873549; Thu, 14 May 2015 19:57:22 +0200 Message-ID: <5554E1FE.1090607@swipnet.se> Date: Thu, 14 May 2015 19:57:18 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Paul Eggert Subject: Re: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar References: <5554CF7B.7090306@cs.ucla.edu> In-Reply-To: <5554CF7B.7090306@cs.ucla.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20432 Cc: "Felix E. Klee" , 20432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Paul Eggert skrev den 2015-05-14 18:38: > Thanks, Jan D., for looking into the problem. It does appear to be a > mess. In theory I suppose Emacs should use > gdk_screen_get_monitor_scale_factor to get the monitor scale factor; but > in practice the situation is so messed up (and a lot of work would be > needed to fix it) that it might not be worth bothering. > > By the way, on my Fedora 21 x86-64 host, setting GDK_SCALE=2 > GDK_DPI_SCALE=0.5 has no effect on emacs -Q, even with the recent > fixes. Perhaps this is due to the races you mentioned? No, that just affects the initial frame size. You should see an effect on toolbar and scroll bar size (they should be twice as big). Are you compiling with Gtk+ 3.8 or later? Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 22:59:44 2015 Received: (at 20432) by debbugs.gnu.org; 15 May 2015 02:59:44 +0000 Received: from localhost ([127.0.0.1]:45589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt5qh-0005G4-Q2 for submit@debbugs.gnu.org; Thu, 14 May 2015 22:59:44 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:47458) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt5qe-0005Fp-RE for 20432@debbugs.gnu.org; Thu, 14 May 2015 22:59:42 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id CD7D639E8016; Thu, 14 May 2015 19:59:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yJlSQGyf6b9U; Thu, 14 May 2015 19:59:31 -0700 (PDT) Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8D4B739E8015; Thu, 14 May 2015 19:59:31 -0700 (PDT) Message-ID: <55556113.50208@cs.ucla.edu> Date: Thu, 14 May 2015 19:59:31 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Jan D." Subject: Re: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar References: <5554CF7B.7090306@cs.ucla.edu> <5554E1FE.1090607@swipnet.se> In-Reply-To: <5554E1FE.1090607@swipnet.se> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20432 Cc: "Felix E. Klee" , 20432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Jan D. wrote: >> By the way, on my Fedora 21 x86-64 host, setting GDK_SCALE=2 >> GDK_DPI_SCALE=0.5 has no effect on emacs -Q, even with the recent >> fixes. Perhaps this is due to the races you mentioned? > > No, that just affects the initial frame size. > You should see an effect on toolbar and scroll bar size (they should be twice as > big). Yes, you're right, it works. I had misconfigured my Emacs (configured with the Lucid toolkit). Sorry about the confusion. I suppose I should mention that when I tried a properly-configured Emacs with GDK_SCALE=2 it dumped core for me. I was running on Fedora 21 x86-64 (which has gtk3-3.14.13-1.fc21.x86_64) and displaying over the Internet to Ubuntu 15.04. I can't reproduce the problem so it could be a timing thing. The core dump occurs within gtk_window_get_size, which is called by xg_frame_set_char_size. I wasn't running under a debugger, so I got only this backtrace: > $ GDK_SCALE=2 src/emacs -Q > X protocol error: BadAccess (attempt to access private resource denied) on protocol request 130 > When compiled with GTK, Emacs cannot recover from X disconnects. > This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715 > For details, see etc/PROBLEMS. > Fatal error 6: Aborted > Backtrace: > src/emacs[0x503bc2] > src/emacs[0x4ebb09] > src/emacs[0x503c53] > src/emacs[0x4be78e] > src/emacs[0x4c2a28] > src/emacs[0x4c2a8d] > /lib64/libX11.so.6(_XError+0x11d)[0x7f0edfd1d4dd] > /lib64/libX11.so.6(+0x42427)[0x7f0edfd1a427] > /lib64/libX11.so.6(+0x424e5)[0x7f0edfd1a4e5] > /lib64/libX11.so.6(_XReply+0x230)[0x7f0edfd1b490] > /lib64/libX11.so.6(XGetGeometry+0x8e)[0x7f0edfcffd9e] > /lib64/libgdk-3.so.0(+0x5d37f)[0x7f0ee1b7537f] > /lib64/libgdk-3.so.0(gdk_window_get_geometry+0x104)[0x7f0ee1b4e014] > /lib64/libgdk-3.so.0(gdk_screen_get_monitor_at_window+0x8f)[0x7f0ee1b4974f] > /lib64/libgtk-3.so.0(+0x332d79)[0x7f0ee2104d79] > /lib64/libgtk-3.so.0(+0x3367fb)[0x7f0ee21087fb] > /lib64/libgtk-3.so.0(gtk_window_get_size+0xab)[0x7f0ee210e88b] > src/emacs[0x4ddff8] > src/emacs[0x4c94fa] > src/emacs[0x4273b0] > src/emacs[0x4d2829] > src/emacs[0x55bb33] > src/emacs[0x58ecb3] > src/emacs[0x55b57f] > src/emacs[0x55b94b] > src/emacs[0x58ecb3] > src/emacs[0x55b94b] > src/emacs[0x58ecb3] > src/emacs[0x55b94b] > src/emacs[0x58ecb3] > src/emacs[0x55b94b] > src/emacs[0x58ecb3] > src/emacs[0x55aa08] > src/emacs[0x55ad0b] > src/emacs[0x55e2d1] > src/emacs[0x55a107] > src/emacs[0x4ee8ac] > src/emacs[0x559fe3] > src/emacs[0x4ebf08] > src/emacs[0x4f04bb] > src/emacs[0x4f0808] > ... > Aborted (core dumped) Addrline converts this to: emacs_backtrace at /home/eggert/src/gnu/emacs/static-checking/src/sysdep.c:2188 terminate_due_to_signal at /home/eggert/src/gnu/emacs/static-checking/src/emacs.c:374 emacs_abort at /home/eggert/src/gnu/emacs/static-checking/src/sysdep.c:2201 x_connection_closed at /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8525 x_error_quitter at /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8617 x_error_handler at /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8588 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 xg_clear_under_internal_border at /home/eggert/src/gnu/emacs/static-checking/src/gtkutil.c:848 (inlined by) xg_frame_set_char_size at /home/eggert/src/gnu/emacs/static-checking/src/gtkutil.c:947 x_set_window_size at /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:9729 adjust_frame_size at /home/eggert/src/gnu/emacs/static-checking/src/frame.c:491 (discriminator 8) Fx_create_frame at /home/eggert/src/gnu/emacs/static-checking/src/xfns.c:3305 Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2719 exec_byte_code at /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 funcall_lambda at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2957 backtrace_debug_on_exit at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 (inlined by) Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 exec_byte_code at /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 backtrace_debug_on_exit at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 (inlined by) Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 exec_byte_code at /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 backtrace_debug_on_exit at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 (inlined by) Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 exec_byte_code at /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 backtrace_debug_on_exit at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 (inlined by) Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 exec_byte_code at /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 apply_lambda at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2829 eval_sub at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2256 Feval at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1997 (discriminator 3) internal_condition_case at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1350 top_level_1 at /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:1162 internal_catch at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1110 command_loop at /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:1118 recursive_edit_1 at /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:729 Frecursive_edit at /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:800 From debbugs-submit-bounces@debbugs.gnu.org Fri May 15 03:02:06 2015 Received: (at 20432) by debbugs.gnu.org; 15 May 2015 07:02:06 +0000 Received: from localhost ([127.0.0.1]:45688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt9dF-0002lB-42 for submit@debbugs.gnu.org; Fri, 15 May 2015 03:02:06 -0400 Received: from mailfe07.swip.net ([212.247.154.193]:33232 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt9dA-0002ka-Rc for 20432@debbugs.gnu.org; Fri, 15 May 2015 03:02:02 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 595168308; Fri, 15 May 2015 09:01:53 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar From: "Jan D." In-Reply-To: <55556113.50208@cs.ucla.edu> Date: Fri, 15 May 2015 09:01:52 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4ECFB612-4AA5-4146-AF73-B065D02C2F78@swipnet.se> References: <5554CF7B.7090306@cs.ucla.edu> <5554E1FE.1090607@swipnet.se> <55556113.50208@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20432 Cc: "Felix E. Klee" , 20432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi. Looks like you had an X protocol error. Its possible we haven=E2=80=99t = covered all cases for GDK_SCALE yet. Jan D. > 15 maj 2015 kl. 04:59 skrev Paul Eggert : >=20 > Jan D. wrote: >>> By the way, on my Fedora 21 x86-64 host, setting GDK_SCALE=3D2 >>> GDK_DPI_SCALE=3D0.5 has no effect on emacs -Q, even with the recent >>> fixes. Perhaps this is due to the races you mentioned? >>=20 >> No, that just affects the initial frame size. >> You should see an effect on toolbar and scroll bar size (they should = be twice as >> big). >=20 > Yes, you're right, it works. I had misconfigured my Emacs (configured = with the Lucid toolkit). Sorry about the confusion. >=20 > I suppose I should mention that when I tried a properly-configured = Emacs with GDK_SCALE=3D2 it dumped core for me. I was running on Fedora = 21 x86-64 (which has gtk3-3.14.13-1.fc21.x86_64) and displaying over the = Internet to Ubuntu 15.04. I can't reproduce the problem so it could be = a timing thing. The core dump occurs within gtk_window_get_size, which = is called by xg_frame_set_char_size. I wasn't running under a = debugger, so I got only this backtrace: >=20 >> $ GDK_SCALE=3D2 src/emacs -Q >> X protocol error: BadAccess (attempt to access private resource = denied) on protocol request 130 >> When compiled with GTK, Emacs cannot recover from X disconnects. >> This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=3D85715 >> For details, see etc/PROBLEMS. >> Fatal error 6: Aborted >> Backtrace: >> src/emacs[0x503bc2] >> src/emacs[0x4ebb09] >> src/emacs[0x503c53] >> src/emacs[0x4be78e] >> src/emacs[0x4c2a28] >> src/emacs[0x4c2a8d] >> /lib64/libX11.so.6(_XError+0x11d)[0x7f0edfd1d4dd] >> /lib64/libX11.so.6(+0x42427)[0x7f0edfd1a427] >> /lib64/libX11.so.6(+0x424e5)[0x7f0edfd1a4e5] >> /lib64/libX11.so.6(_XReply+0x230)[0x7f0edfd1b490] >> /lib64/libX11.so.6(XGetGeometry+0x8e)[0x7f0edfcffd9e] >> /lib64/libgdk-3.so.0(+0x5d37f)[0x7f0ee1b7537f] >> /lib64/libgdk-3.so.0(gdk_window_get_geometry+0x104)[0x7f0ee1b4e014] >> = /lib64/libgdk-3.so.0(gdk_screen_get_monitor_at_window+0x8f)[0x7f0ee1b4974f= ] >> /lib64/libgtk-3.so.0(+0x332d79)[0x7f0ee2104d79] >> /lib64/libgtk-3.so.0(+0x3367fb)[0x7f0ee21087fb] >> /lib64/libgtk-3.so.0(gtk_window_get_size+0xab)[0x7f0ee210e88b] >> src/emacs[0x4ddff8] >> src/emacs[0x4c94fa] >> src/emacs[0x4273b0] >> src/emacs[0x4d2829] >> src/emacs[0x55bb33] >> src/emacs[0x58ecb3] >> src/emacs[0x55b57f] >> src/emacs[0x55b94b] >> src/emacs[0x58ecb3] >> src/emacs[0x55b94b] >> src/emacs[0x58ecb3] >> src/emacs[0x55b94b] >> src/emacs[0x58ecb3] >> src/emacs[0x55b94b] >> src/emacs[0x58ecb3] >> src/emacs[0x55aa08] >> src/emacs[0x55ad0b] >> src/emacs[0x55e2d1] >> src/emacs[0x55a107] >> src/emacs[0x4ee8ac] >> src/emacs[0x559fe3] >> src/emacs[0x4ebf08] >> src/emacs[0x4f04bb] >> src/emacs[0x4f0808] >> ... >> Aborted (core dumped) >=20 >=20 > Addrline converts this to: >=20 > emacs_backtrace at = /home/eggert/src/gnu/emacs/static-checking/src/sysdep.c:2188 > terminate_due_to_signal at = /home/eggert/src/gnu/emacs/static-checking/src/emacs.c:374 > emacs_abort at = /home/eggert/src/gnu/emacs/static-checking/src/sysdep.c:2201 > x_connection_closed at = /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8525 > x_error_quitter at = /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8617 > x_error_handler at = /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:8588 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > ?? ??:0 > xg_clear_under_internal_border at = /home/eggert/src/gnu/emacs/static-checking/src/gtkutil.c:848 > (inlined by) xg_frame_set_char_size at = /home/eggert/src/gnu/emacs/static-checking/src/gtkutil.c:947 > x_set_window_size at = /home/eggert/src/gnu/emacs/static-checking/src/xterm.c:9729 > adjust_frame_size at = /home/eggert/src/gnu/emacs/static-checking/src/frame.c:491 = (discriminator 8) > Fx_create_frame at = /home/eggert/src/gnu/emacs/static-checking/src/xfns.c:3305 > Ffuncall at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2719 > exec_byte_code at = /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 > funcall_lambda at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2957 > backtrace_debug_on_exit at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 > (inlined by) Ffuncall at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 > exec_byte_code at = /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 > backtrace_debug_on_exit at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 > (inlined by) Ffuncall at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 > exec_byte_code at = /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 > backtrace_debug_on_exit at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 > (inlined by) Ffuncall at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 > exec_byte_code at = /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 > backtrace_debug_on_exit at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:159 > (inlined by) Ffuncall at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2791 > exec_byte_code at = /home/eggert/src/gnu/emacs/static-checking/src/bytecode.c:919 > apply_lambda at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2829 > eval_sub at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:2256 > Feval at /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1997 = (discriminator 3) > internal_condition_case at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1350 > top_level_1 at = /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:1162 > internal_catch at = /home/eggert/src/gnu/emacs/static-checking/src/eval.c:1110 > command_loop at = /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:1118 > recursive_edit_1 at = /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:729 > Frecursive_edit at = /home/eggert/src/gnu/emacs/static-checking/src/keyboard.c:800 From unknown Thu Sep 11 20:49:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Jun 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator