From unknown Sun Aug 10 16:50:40 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#20619 <20619@debbugs.gnu.org> To: bug#20619 <20619@debbugs.gnu.org> Subject: Status: 24.5; Pop-up menus clipped on HiDPI (Gtk3/X11) Reply-To: bug#20619 <20619@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:50:40 +0000 retitle 20619 24.5; Pop-up menus clipped on HiDPI (Gtk3/X11) reassign 20619 emacs submitter 20619 Michael Droettboom severity 20619 normal tag 20619 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 14:51:48 2015 Received: (at submit) by debbugs.gnu.org; 20 May 2015 18:51:48 +0000 Received: from localhost ([127.0.0.1]:51486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv95n-0002x1-Fd for submit@debbugs.gnu.org; Wed, 20 May 2015 14:51:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52239) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv8v8-0002hm-7D for submit@debbugs.gnu.org; Wed, 20 May 2015 14:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv8v1-0005Th-OW for submit@debbugs.gnu.org; Wed, 20 May 2015 14:40:40 -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.6 required=5.0 tests=BAYES_00, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv8v1-0005Tc-Km for submit@debbugs.gnu.org; Wed, 20 May 2015 14:40:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv8v0-0007Q8-3W for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 14:40:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv8uu-0005T2-W8 for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 14:40:38 -0400 Received: from mta-ext.stsci.edu ([130.167.238.10]:52247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv8uu-0005Sy-Rk for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 14:40:32 -0400 Received: from [192.168.1.27] (216.164.49.112) by EXCHCAS1.stsci.edu (130.167.238.15) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 20 May 2015 14:20:12 -0400 Message-ID: <555CD05C.4070303@stsci.edu> Date: Wed, 20 May 2015 14:20:12 -0400 From: Michael Droettboom User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Subject: 24.5; Pop-up menus clipped on HiDPI (Gtk3/X11) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [216.164.49.112] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 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: Wed, 20 May 2015 14:51:45 -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 (----) If in HiDPI mode on Linux [1] the popup menus are constrained to the upper left quadrant of the screen and are not opened near the mouse cursor. For example, 'C-mouse-1' in the lower-right hand quadrant opens an empty menu. 'C-mouse-1' in the upper-right hand quadrant opens a menu, but not in the correct location. [1] This mode is set automatically under Gnome, or may get set manually with: gsettings set org.gnome.desktop.interface scaling-factor 2 A workaround, which may help to diagnose the bug, is to start emacs using: GDK_SCALE=0.5 emacs Other Gtk3 applications (gnome-terminal, nautilus) so not seem to exhibit this behavior under the same conditions. In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.2) of 2015-04-22 on buildhw-08.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11701000 System Description: Fedora release 23 (Rawhide) Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Important settings: value of $LC_CTYPE: en_US.utf8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Sat May 23 08:06:42 2015 Received: (at 20619) by debbugs.gnu.org; 23 May 2015 12:06:42 +0000 Received: from localhost ([127.0.0.1]:53492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw8CM-0008AN-7n for submit@debbugs.gnu.org; Sat, 23 May 2015 08:06:42 -0400 Received: from mailfe03.swip.net ([212.247.154.65]:43897 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw8CG-0008A4-Jt for 20619@debbugs.gnu.org; Sat, 23 May 2015 08:06:36 -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 mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 432087059; Sat, 23 May 2015 14:06:23 +0200 Message-ID: <55606D3F.201@swipnet.se> Date: Sat, 23 May 2015 14:06:23 +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: Michael Droettboom , 20619@debbugs.gnu.org Subject: Re: bug#20619: 24.5; Pop-up menus clipped on HiDPI (Gtk3/X11) References: <555CD05C.4070303@stsci.edu> In-Reply-To: <555CD05C.4070303@stsci.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20619 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-05-20 20:20, Michael Droettboom skrev: > > If in HiDPI mode on Linux [1] the popup menus are constrained to the > upper left quadrant of the screen and are not opened near the mouse > cursor. For example, 'C-mouse-1' in the lower-right hand quadrant opens > an empty menu. 'C-mouse-1' in the upper-right hand quadrant opens a > menu, but not in the correct location. > > [1] This mode is set automatically under Gnome, or may get set manually > with: > > gsettings set org.gnome.desktop.interface scaling-factor 2 > > A workaround, which may help to diagnose the bug, is to start emacs > using: > > GDK_SCALE=0.5 emacs This is a huge undertaking, that requires changes in Emacs all over the place. Coordinates and sizes are used in many places. I'm not sure its worth it, as this Gnome thing is a bad way to scale applications (it requires applications to conform to Gtk+). KDE does something different for example. So I'm guessing something better will emerge. > > Other Gtk3 applications (gnome-terminal, nautilus) so not seem to > exhibit this behavior under the same conditions. Emacs is not a Gtk3 application, ut just uses some of its widgets. Its more of a raw X11/Gtk3 hybrid. Jan D. > > > > In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.2) > of 2015-04-22 on buildhw-08.phx2.fedoraproject.org > Windowing system distributor `Fedora Project', version 11.0.11701000 > System Description: Fedora release 23 (Rawhide) > > Configured using: > `configure --build=x86_64-redhat-linux-gnu > --host=x86_64-redhat-linux-gnu --program-prefix= > --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr > --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc > --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 > --libexecdir=/usr/libexec --localstatedir=/var > --sharedstatedir=/var/lib --mandir=/usr/share/man > --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png > --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 > --with-gpm=no build_alias=x86_64-redhat-linux-gnu > host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g > -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 > -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' > > Important settings: > value of $LC_CTYPE: en_US.utf8 > value of $LANG: en_US.utf8 > locale-coding-system: utf-8-unix > > > > From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 12:08:24 2015 Received: (at control) by debbugs.gnu.org; 26 Aug 2015 16:08:24 +0000 Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUdFP-00089S-U9 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 12:08:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55817) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUdFO-00089K-Ha for control@debbugs.gnu.org; Wed, 26 Aug 2015 12:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUdFK-0000C1-FI for control@debbugs.gnu.org; Wed, 26 Aug 2015 12:08:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUdFK-0000Bw-Ca for control@debbugs.gnu.org; Wed, 26 Aug 2015 12:08:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZUdFJ-0001qT-T8 for control@debbugs.gnu.org; Wed, 26 Aug 2015 12:08:18 -0400 Subject: control message for bug 21348 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 26 Aug 2015 12:08:17 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control 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: -6.4 (------) merge 20619 21348 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 12 17:10:59 2015 Received: (at 20619) by debbugs.gnu.org; 12 Oct 2015 21:11:00 +0000 Received: from localhost ([127.0.0.1]:37560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZlkN1-00073t-2o for submit@debbugs.gnu.org; Mon, 12 Oct 2015 17:10:59 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:34007) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZlkMx-00073R-84; Mon, 12 Oct 2015 17:10:55 -0400 Received: by iow1 with SMTP id 1so1394851iow.1; Mon, 12 Oct 2015 14:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=/aPe9rmSDBXVRJR/74k5aFwqTd2UEqSAG0Y3Db3mmH8=; b=fhoGXgpjmmbD77BLLd7WiMBj1qmu4JuxJL4MDmK3a9nY/5Pa+mpG3NxMUIsywT3x17 HEfn5X52k3VL68YLqbP/H5BVUjYLpUbHmgC/j/Jt1Voa7b1gN6BkTD0d34LjE2D6l+Zv Z4u/AwufRhr/Nc9rSQ++DjXQh0BGrD4MyLKGVKoKGc9iox+LXpsy8IBO99QWpnJKrzgR c+CvGUTdH6+L2E9GocePR5ZX704xw/iyBxumNKJrj9PznkM32ZORE1iJrNJgEpXtIYk8 CTUAeOHEiAh2wys5GY+lQY9PGqA7pNx4CwKcrSSXbyHRhfQ4+JmZpmWKbYa8hy6W+aQ8 K5ww== X-Received: by 10.107.148.72 with SMTP id w69mr35411639iod.82.1444684254816; Mon, 12 Oct 2015 14:10:54 -0700 (PDT) Received: from ryan-XPS-13-9343 ([137.28.231.82]) by smtp.gmail.com with ESMTPSA id t7sm107640igz.10.2015.10.12.14.10.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 12 Oct 2015 14:10:53 -0700 (PDT) From: Ryan Prior To: 21348@debbugs.gnu.org Subject: Re: bug#21348: 25.0.50; Screen scaling factor >=2 causes menus, tooltips to display in the wrong place In-Reply-To: (Ryan Prior's message of "Tue, 25 Aug 2015 17:51:28 -0500") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Date: Mon, 12 Oct 2015 16:10:52 -0500 Message-ID: <86twpvhjxf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org, 18429@debbugs.gnu.org, 21469@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 (/) --=-=-= Content-Type: text/plain I wrote a patch to fix the issues from bugs #20619 and #21348 for GTK users. When the functions to display a tooltip or menu are called, Emacs scales coordinates using a factor from GTK. In my testing, non-GTK tooltips and menus weren't broken, so the problem is specific to GTK and the patch has no effect on non-GTK builds. Michael Droettboom, will you apply this patch and verify that the menus are now placed correctly on your system? There's something else entirely going on with the scroll bars in bug #21469, this patch doesn't address that at all. I had never noticed that hidpi bug because I dont use scroll bars, but I can confirm that turning on scroll bars causes strange behavior. It might be possible that a similar scaling strategy for scroll bar placement could provide a fix, so I CC'd that bug. I will investigate that more as time allows. The final hidpi bug I looked at, #18429, I am unable to reproduce. Perhaps it is not applicable to my platform - I'm on Ubuntu Trusty, while the reporter is on Utopic. Anders Kaseorg, can you still reproduce the bug? Finally, there's the open question of why the coordinates these functions are getting are doubled in the first place. Given my limited familiarity with Emacs internals, I have not made any progress on that question. Perhaps there are few enough places where these sometimes-inflated coordinates are passed into GTK that we can just scale them everywhere and call it good enough. Or perhaps there's a more robust solution somewhere else - if anybody can help explain this to me, I would be appreciative. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Adjust-overlay-position-on-hidpi-screens.patch Content-Description: patch to fix bugs #21348, #20619 >From 3addec3d592b9fc81e2a1503a37ccb078f03118c Mon Sep 17 00:00:00 2001 From: Ryan Prior Date: Fri, 2 Oct 2015 19:22:28 -0500 Subject: [PATCH] Adjust overlay position on hidpi screens Scale the display positions of tooltips and menus according to the window scaling factor provided by GTK3, if it is available (Bug#21348). * src/gtkutil.h (xg_scale_x_y_with_widget): * src/gtkutil.c (xg_scale_x_y_with_widget): Fuction finds scaling factor and performs scaling. (xg_show_tooltip): Divide position of tooltip by scaling factor. * src/xmenu.c (create_and_show_popup_menu) [HAVE_GTK3]: Divide position of native GTK3 menus by scaling factor. --- src/gtkutil.c | 14 ++++++++++++++ src/gtkutil.h | 4 ++++ src/xmenu.c | 6 ++++++ 3 files changed, 24 insertions(+) diff --git a/src/gtkutil.c b/src/gtkutil.c index 34e81b5..db80b2e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -748,6 +748,7 @@ xg_show_tooltip (struct frame *f, int root_x, int root_y) if (x->ttip_window) { block_input (); + xg_scale_x_y_with_widget(GTK_WIDGET(x->ttip_window), &root_x, &root_y); gtk_window_move (x->ttip_window, root_x, root_y); gtk_widget_show_all (GTK_WIDGET (x->ttip_window)); unblock_input (); @@ -3223,6 +3224,19 @@ xg_update_submenu (GtkWidget *submenu, return newsub; } +/* Scale X and Y. + WIDGET the gtk widget from which to get the scaling factor */ +void +xg_scale_x_y_with_widget (GtkWidget *widget, + int *x, + int *y) +{ + gint scale_factor = gtk_widget_get_scale_factor(widget); + if(x) *x /= scale_factor; + if(y) *y /= scale_factor; +} + + /* Update the MENUBAR. F is the frame the menu bar belongs to. VAL describes the contents of the menu bar. diff --git a/src/gtkutil.h b/src/gtkutil.h index 34338db..8db063a 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -96,6 +96,10 @@ extern GtkWidget *xg_create_widget (const char *type, GCallback deactivate_cb, GCallback highlight_cb); +extern void xg_scale_x_y_with_widget (GtkWidget *widget, + int *x, + int *y); + extern void xg_modify_menubar_widgets (GtkWidget *menubar, struct frame *f, struct _widget_value *val, diff --git a/src/xmenu.c b/src/xmenu.c index 192ed89..1b7bbb5 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1229,6 +1229,12 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, /* Child of win. */ &dummy_window); +#ifdef HAVE_GTK3 + /* Use window scaling factor to adjust position for hidpi screens. */ + xg_scale_x_y_with_widget(GTK_WIDGET(f->output_data.x->ttip_window), + &x, + &y); +#endif unblock_input (); popup_x_y.x = x; popup_x_y.y = y; -- 2.6.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 13 11:51:53 2015 Received: (at 20619) by debbugs.gnu.org; 13 Oct 2015 15:51:53 +0000 Received: from localhost ([127.0.0.1]:38926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm1rk-0001QO-GP for submit@debbugs.gnu.org; Tue, 13 Oct 2015 11:51:53 -0400 Received: from mout.gmx.net ([212.227.17.20]:60951) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm1rf-0001Pq-MN; Tue, 13 Oct 2015 11:51:48 -0400 Received: from [188.22.238.113] ([188.22.238.113]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LgI0W-1aOePO1GlQ-00neDu; Tue, 13 Oct 2015 17:51:46 +0200 Message-ID: <561D288E.7070803@gmx.at> Date: Tue, 13 Oct 2015 17:51:42 +0200 From: martin rudalics MIME-Version: 1.0 To: Ryan Prior , 21348@debbugs.gnu.org Subject: Re: bug#21469: bug#21348: 25.0.50; Screen scaling factor >=2 causes menus, tooltips to display in the wrong place References: <86twpvhjxf.fsf@gmail.com> In-Reply-To: <86twpvhjxf.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:8j+pBGyt3wE2IIIUEUy160DB8nnWh1Lo0JYNZ0vp1PZbJX+51cj 0D9YCh5xN43XuXrzPcEXV0icSu1mLF1knjFg0Z9SYTT9yjhS+h7wbIhFjWLpAX5LKfAXyAU Yi8aRnwGDCr17yVvyXNDihEERH5HUB0cKH3iiwKnBt7YiazvYjQr+2de29ykbDdtjZeYMfH DEeIftd//23U3BUMJPgaw== X-UI-Out-Filterresults: notjunk:1;V01:K0:opKyW66IunQ=:rUMwifr2d0GCbKulKPz5WB WF80fIGQLHj9xf0/R1tqufJmcKbYbzdaB+b66X8SwTWxKFf+2sQKcAMAs1pxQKuQMGeIScWlC qFCDcXw95bEGzVTMpPBAqw5FIRlPxPYIwwv7VqntAu/VNhp9DCyr9CUGuBSgUgCp+VPfx50xE Q9ODeHCGJmL/oxf7r3N5Am3mXYr+3KwCFwyltWzS3iDk1RF4Zrkg0pjhpKe0fUfBFUv/A5SaS fKvMO0NmcJXhMIIStkvisIL6DT32UPNMHzeXV/walmwcMNOwOwVyKpdYBo0+fTW9xjK+kMsuI kR5/eRJ8xhB19HiZGdiST1UmG1/qQwQ2ZrpbwbzKF+cwxx4Yg4+IbqGaf3JKyFVvMCBqT27s6 hmfE1ctno2s2OnOoXdoAQM04sGJUo1T4srAJq5pA3kCodAeuWT8U/fIaDDNpdd+BKVM6gD1St zVf4MX7OeYBU63mYxSqYMye9cbtjQdoU3QfSwAMGG3w4EEXdovXkwsp+fmh4LzCxtfvYqbQlP KroB5bP4opjNWbN2Jitpdxfuym5oVnzogogZ/M4znQN0bWaPRS6io7TFbQJm2QZJMfjBupiGV bileDw/dLtQKguouZd5eBIvsnqZyrk68K2NNWcaIi7/wWQuK3c/Q90iluLseXZCLjM2Uau1/o VPMCLpgPiNO0i5neRwrGkOfhRWi1VIurPAKsHXiLBcbZShhcS15Ar6P94Yaju6R3tqLKDrkvg TWFdGr9qLOTdtStHyxLSmIuQZKwtQre9vrvPZdDTOZmpZoPpUPTwD1yka2HgxuFCIOd7dk1dP M6el7rH X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org, 18429@debbugs.gnu.org, 21469@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 (/) > I wrote a patch to fix the issues from bugs #20619 and #21348 for GTK > users. When the functions to display a tooltip or menu are called, Ema= cs > scales coordinates using a factor from GTK. In my testing, non-GTK > tooltips and menus weren't broken, so the problem is specific to GTK a= nd > the patch has no effect on non-GTK builds. Thank you very much Ryan. Your help is very appreciated. > Michael Droettboom, will you > apply this patch and verify that the menus are now placed correctly on= > your system? Michael, pretty please, do that. If you have any problems applying the patch or building Emacs, please tell us. It would be great to fix and test this before the release. > There's something else entirely going on with the scroll bars in bug > #21469, this patch doesn't address that at all. I had never noticed th= at > hidpi bug because I dont use scroll bars, but I can confirm that turni= ng > on scroll bars causes strange behavior. Is the behavior you see "consistent"? Robert's screenhots seem to tell that the x-position of each scrollbar is always twice of what it should be. > It might be possible that a > similar scaling strategy for scroll bar placement could provide a fix,= > so I CC'd that bug. I will investigate that more as time allows. That would be great. > The final hidpi bug I looked at, #18429, I am unable to > reproduce. Perhaps it is not applicable to my platform - I'm on Ubuntu= > Trusty, while the reporter is on Utopic. Anders Kaseorg, can you still= > reproduce the bug? Let's hope that Anders is listening. > Finally, there's the open question of why the coordinates these > functions are getting are doubled in the first place. Given my limited= > familiarity with Emacs internals, I have not made any progress on that= > question. Perhaps there are few enough places where these > sometimes-inflated coordinates are passed into GTK that we can just > scale them everywhere and call it good enough. I don't see any problems with such a solution. > Or perhaps there's a more > robust solution somewhere else - if anybody can help explain this to m= e, > I would be appreciative. Are the frame parameters =E2=80=98top=E2=80=99 and =E2=80=98left=E2=80=99= affected? Suppose you do say (set-frame-parameter nil 'left 500) with scaling in effect. Does the frame appear 500 pixels left of the left screen edge? If not, then mouse warping (=E2=80=98set-mouse-absolute-pixel-position=E2=80=99) is pr= obably affected too and we really have to look into a more generic solution. martin From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 13 12:35:24 2015 Received: (at 20619) by debbugs.gnu.org; 13 Oct 2015 16:35:24 +0000 Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm2Xr-0002YR-8X for submit@debbugs.gnu.org; Tue, 13 Oct 2015 12:35:23 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:34180) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm2Xi-0002Xe-UZ; Tue, 13 Oct 2015 12:35:15 -0400 Received: by ykdg206 with SMTP id g206so22204493ykd.1; Tue, 13 Oct 2015 09:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Aw6lc+XRdcLkjToCPFhWG+oZoVjiAjgUYXnYCMxXzgg=; b=m2c+7ytCb8aAu4INey9WI8+j2LTMROzwdcn7mTB6wi5uFHLwJA9/+isSG9hyBb6Ycz gYQw24U1XTTOgHxWxWTDwVhYCQHr/1bblS5gSI29XiLaF54AIGdmao8i3eb/AdRGxw2Z LIQDDQ70ojKs2+qsYGRC6NcuHpsgMFZlYah6Aq02Xx9/+1oaMqjulhSlwE8SM3+2uUji FDUIArx2rxIAhqsrX2OVeeGOAxKP9rYvd5wSe/9nXgZi1ZBqa5Ert1JnZEYEzDKsTpfn mWUTTyJRzBRBtYJc8yGYpVqzXZJkQ8+eiWG2OBGy/wdJPYy3VFEIgVZfUeGOb/ad9tti 4vpA== X-Received: by 10.13.217.80 with SMTP id b77mr28126999ywe.339.1444754114341; Tue, 13 Oct 2015 09:35:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.87.193 with HTTP; Tue, 13 Oct 2015 09:34:34 -0700 (PDT) In-Reply-To: <561D288E.7070803@gmx.at> References: <86twpvhjxf.fsf@gmail.com> <561D288E.7070803@gmx.at> From: Ryan Prior Date: Tue, 13 Oct 2015 11:34:34 -0500 Message-ID: Subject: Re: bug#21469: bug#21348: 25.0.50; Screen scaling factor >=2 causes menus, tooltips to display in the wrong place To: martin rudalics Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org, 18429@debbugs.gnu.org, 21348@debbugs.gnu.org, 21469@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 Tue, Oct 13, 2015 at 10:51 AM, martin rudalics wrote: > Are the frame parameters =E2=80=98top=E2=80=99 and =E2=80=98left=E2=80=99= affected? Suppose you do say > (set-frame-parameter nil 'left 500) with scaling in effect. Does the > frame appear 500 pixels left of the left screen edge? If not, then > mouse warping (=E2=80=98set-mouse-absolute-pixel-position=E2=80=99) is pr= obably affected > too and we really have to look into a more generic solution. I spent some time playing with frame positions. TABLE: `(set-frame-parameter nil 'left ,x) _____________________________________________ x | actual frame distance from left screen edge (px) 0 | 20 500 | 520 1600 | 1620 1800 | 1772 2000 | 1772 A few observations: 1) offset of 20 pixels I've never noticed this issue because it doesn't affect maximized frames. Maybe that number 20 is significant somehow, or perhaps this is a separate bug. The first time after I start `emacs -Q` and set the left frame edge to 0, the frame flashes momentarily into place flush with the left screen edge, for perhaps a single video frame, and then jumps 20 pixels to the right. Subsequent calls to set the left frame edge to 0 do not trigger this flashing behavior. 2) numbers are proportional, modulo the unexplained offset We do not see doubling behavior here. I have added no scaling code pertaining to frame positioning. 3) frame "sticks" to the right screen edge Given the width of the frame I was testing with, when the left frame edge is 1772 pixels from the left screen edge, the right frame edge is flush with the right screen edge. Setting the left frame edge to a greater value does not result in a further movement of the frame. l appreciate any help with corroboration and analysis of these results. Yours, Ryan From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 13 13:21:51 2015 Received: (at 20619) by debbugs.gnu.org; 13 Oct 2015 17:21:51 +0000 Received: from localhost ([127.0.0.1]:38990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm3Go-0003dt-Nw for submit@debbugs.gnu.org; Tue, 13 Oct 2015 13:21:51 -0400 Received: from mout.gmx.net ([212.227.17.22]:59895) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm3Gl-0003dR-3i; Tue, 13 Oct 2015 13:21:47 -0400 Received: from [188.22.238.113] ([188.22.238.113]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lkiqm-1aKHYj42dg-00aSNp; Tue, 13 Oct 2015 19:21:46 +0200 Message-ID: <561D3DA5.9000801@gmx.at> Date: Tue, 13 Oct 2015 19:21:41 +0200 From: martin rudalics MIME-Version: 1.0 To: Ryan Prior Subject: Re: bug#21469: bug#21348: 25.0.50; Screen scaling factor >=2 causes menus, tooltips to display in the wrong place References: <86twpvhjxf.fsf@gmail.com> <561D288E.7070803@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:55H+aAeVjtvLuHXy8ztASJu8BAqKGuypfFlEeEaJovFSpATIPJh lej5hcbZwBhuXW6nAOTYcuuj/JQwhdGfuG0azlhGbRp6e+Go35EaR61hzwsASGDawzI4U3v d+fPlGo9p3P8MMYK6I7gsb1yFvTpfhTKEy6qPfadPnJGvMubpCqdmTyyWoy+pq+EaC2Jbfm oSebKsVgO7P+QprKn//Rw== X-UI-Out-Filterresults: notjunk:1;V01:K0:KnKuE9vOKBs=:Y6VDbJTqwowo4MH2W4zvoy 428/0lN7grKqvxeczOLwuwJCu1SAf4k7Rz5yWmODAzRHnyqwKo0TisvjNTLem5HU0KgOjpiXR QP5PxfEj/1/7Sk/dg1cuAfya3Emyx7RUeDPlasOdi3+lO5Y5o2yOcQnSUazrUY31RBmTr/Bue kOaCAYvLh9Dq7skcUUy2LjDFiwnhBoeKfXvki24x/dOMZsl5ejgY/HDwdesfTRirIUSt0mUP7 lfVasBGkK4ml86At1Erq0A8CzLwu1s8HSVq6NnnhoVFMlUmGcGi5/cANf/dWDDXHkOehXavGj 1gnbp3fOxIUIQqZnnkumQUE2PjgQAAr/jMErkJ3th6DTNRD4kSuXvctasMPcOUaSHBH9sOsEZ aGzzEpSJrz7rnW7FBPehLn11nGG8iGou6DuBtKBYoRAqn6HXCU9idBSaIAvUsHcB+pLpL+5NO UJ6ZImJzbcGU/vP40sIQDHIjltJwSFe1Pevc7bnN5jhXoJvnkkLwuwtZvtSJwK+sy30Vm1BN2 ob/wBtzp8m1Zp5moEY8GvfZr06X/hGorCFZDvDgRug4nIKjrql/jA98S7DpWMBS2PyLBMV5H6 NfU2VsucadN6e5bSRPm3/W6SbxnQV8oo+ogUiDjAWRMGvAPvXS9Et3PO06QZdQ7C0QvDQr1JQ JiAc0YIOb9K6L6EmaUZhGKQWXDKyO5LHBjdoLxvHx8fgGLddMMemxeckbr+SZt03H4jM4jsy4 rdnwaHe3Prze3IkuskkkgPbFGRXDBs9NUx0ixxfzlMnGpo4ETB/u1YUHLAzTd1+9GmZW93w+Z 09+kuvs X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org, 18429@debbugs.gnu.org, 21348@debbugs.gnu.org, 21469@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 (/) > TABLE: `(set-frame-parameter nil 'left ,x) > _____________________________________________ > x | actual frame distance from left screen edge (px) > 0 | 20 > 500 | 520 > 1600 | 1620 > 1800 | 1772 > 2000 | 1772 > > A few observations: > 1) offset of 20 pixels > I've never noticed this issue because it doesn't affect maximized > frames. Maybe that number 20 is significant somehow, or perhaps this > is a separate bug. The first time after I start `emacs -Q` and set the= > left frame edge to 0, the frame flashes momentarily into place flush > with the left screen edge, for perhaps a single video frame, and then > jumps 20 pixels to the right. This might be window manager related. Can you try again with the =E2=80=98user-position=E2=80=99 frame parameter non-nil? Like (modify-frame-parameters nil '((left . 0) (user-position . t))) > Subsequent calls to set the left frame > edge to 0 do not trigger this flashing behavior. You mean on a subsequent attempt the frame is flushed left or still at position 20. What happens when you try something similar with the =E2=80= =98top=E2=80=99 parameter? > 2) numbers are proportional, modulo the unexplained offset > We do not see doubling behavior here. I have added no scaling code > pertaining to frame positioning. Does that mean the offset of 20 pixels appears with scaling turned off and on? > 3) frame "sticks" to the right screen edge > Given the width of the frame I was testing with, when the left frame > edge is 1772 pixels from the left screen edge, the right frame edge is= > flush with the right screen edge. Setting the left frame edge to a > greater value does not result in a further movement of the frame. So the window manager probably constrains frame positioning. What happens with a frame larger than the screen size? And does =E2=80=98set-mouse-absolute-pixel-position=E2=80=99 work normall= y? martin From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 18 11:47:53 2015 Received: (at control) by debbugs.gnu.org; 18 Dec 2015 16:47:53 +0000 Received: from localhost ([127.0.0.1]:55907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9yC9-0000yf-Ks for submit@debbugs.gnu.org; Fri, 18 Dec 2015 11:47:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41125) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9yC7-0000yS-TR for control@debbugs.gnu.org; Fri, 18 Dec 2015 11:47:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9yC2-0005nM-8I for control@debbugs.gnu.org; Fri, 18 Dec 2015 11:47:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9yC2-0005nI-5F for control@debbugs.gnu.org; Fri, 18 Dec 2015 11:47:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a9yC1-00018Y-7K for control@debbugs.gnu.org; Fri, 18 Dec 2015 11:47:45 -0500 Subject: control message for bug 22204 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 18 Dec 2015 11:47:45 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) merge 20619 22204 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 08 20:09:35 2016 Received: (at control) by debbugs.gnu.org; 9 Apr 2016 00:09:35 +0000 Received: from localhost ([127.0.0.1]:55006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aogT1-0004g1-5O for submit@debbugs.gnu.org; Fri, 08 Apr 2016 20:09:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aogSz-0004fn-Q0 for control@debbugs.gnu.org; Fri, 08 Apr 2016 20:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aogSt-0008Nb-Ts for control@debbugs.gnu.org; Fri, 08 Apr 2016 20:09:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aogSt-0008NX-Qs for control@debbugs.gnu.org; Fri, 08 Apr 2016 20:09:27 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aogSt-0001so-Gl for control@debbugs.gnu.org; Fri, 08 Apr 2016 20:09:27 -0400 Subject: control message for bug 23231 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 08 Apr 2016 20:09:27 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -6.0 (------) merge 20619 23231 From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 14:22:55 2016 Received: (at 20619) by debbugs.gnu.org; 11 May 2016 18:22:55 +0000 Received: from localhost ([127.0.0.1]:47617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0Ymd-0007KO-CQ for submit@debbugs.gnu.org; Wed, 11 May 2016 14:22:55 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:34732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0VeN-0002M0-LK for 20619@debbugs.gnu.org; Wed, 11 May 2016 11:02:14 -0400 Received: by mail-io0-f181.google.com with SMTP id 190so57718601iow.1 for <20619@debbugs.gnu.org>; Wed, 11 May 2016 08:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to; bh=RzT9XfG2iLNeKl+jhU6CXh1GLxyx01Vy+oNfRcMu0r4=; b=ZLYlGJpqHqeMiV5I6YSE1rjKCa3hq0cRxrtd+5SJUZNY+GTx2OJCP/YboyMfRgvoXH T1ZGJXXj6Ja6CrS7fEd+s4dPdQEXtF9YxDzx5MpPBAU53wDErUhD3Yp51F73MG7jg+t/ 5Njn8cNT62iUVwO6fDYeNAPw8Nd88tNpA5/1Cjv3+hmPdpopyOhzRGLBqtKLR5nC/WCz fNE1rWgtLPUqwkcwx2tAiOGvcvPzRU6S/01IvNAkjP1J/WhnhgqY4olOmtKxUJZcxGYd KSy4ulkSrDhttBHBAoJbTkwpEDk6kTGMo4nHpE/t5/tAA5blieJQBnvz8AmRyTPhqtsP VQiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cscott-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:date:message-id:subject:from:to; bh=RzT9XfG2iLNeKl+jhU6CXh1GLxyx01Vy+oNfRcMu0r4=; b=L+7rc8zEREF6sztd1lb+ZF9g9T+T04QhhknUMAYtiYnlAEXDCaqgxG/xezeXZwTbCS BnoIvLzy4Sjatf3IXReyg7HqllsZPnF0BJAde3Kwof6PjYMn+E7RbN0LgGwp0fGTAQ1C qmYYyMOV3MqBaRch1UG/5qySX9+8BJVIjOhO3SKOc5iXHmf6KTOXNJVSLSd5PAp9nwi7 qCxJOOtSP5s5QtUQEDpb1eiapyZdGhz5c9lk9wvhUx5NszkC5q3LgYDA1kEFKyWVbq1r uKMjnpMcKILjDeKVUuzH5TZghRAbSZN3rXJCZ4jubpEhRRXkzNG1pdyZRRVE6ZAnJJGC En0Q== 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:date:message-id:subject:from :to; bh=RzT9XfG2iLNeKl+jhU6CXh1GLxyx01Vy+oNfRcMu0r4=; b=RRSBnWww2VnV2olPjuKq0N9XcmMsFUqfB7GhJ1Og7fFpE9kBVzIoo5xa+YuGUiugvz ab7JD6tLq4AyezktTSI0o1R0vpjFu/avk3tJrTXnFv8++gSUv81ov9zmbvFLeOKiv2kU nzB38QdZDzGP8FUmKNBixa7clZ82Vnw2WoQ4a1UeNBxqdPUoIsuOI87kimTq2hyCYhN0 MEOz35Zm2G8C7BY2XYX3Rilz6PbU6D1GOtsZIy0qUrJNn28RCsI3ty0R2nhcg0huc62J xNi4/zACqmOSodxSJI+RLw2mqEWWn83VkeOD/0JDyLrybLNbM0K/EQtwifaX1YJeqBS4 D9IQ== X-Gm-Message-State: AOPr4FXSYWlJ6HfUXUiq5PW7c/352KI4WG5PYQfPTJeL4nP+zEGw+2lg7vs4PyvOgSqhLBc52bSn6JpRv6PKIA== MIME-Version: 1.0 X-Received: by 10.36.20.206 with SMTP id 197mr2594470itg.24.1462978925500; Wed, 11 May 2016 08:02:05 -0700 (PDT) Received: by 10.79.88.1 with HTTP; Wed, 11 May 2016 08:02:05 -0700 (PDT) Date: Wed, 11 May 2016 11:02:05 -0400 X-Google-Sender-Auth: Jkzcvn1dysNMiyKbKJDDvAkcgeU Message-ID: Subject: Another HiDPI issue From: "C. Scott Ananian" To: 20619@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a11438b942b1ecc05329253cf X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 20619 X-Mailman-Approved-At: Wed, 11 May 2016 14:22:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.5 (/) --001a11438b942b1ecc05329253cf Content-Type: text/plain; charset=UTF-8 In addition to the pop-up menus being misplaced, on my machine (debian/testing, HiDPI=2, emacs 24.5.1) I'm seeing the initial window sizes being much too wide. The scaling from columns from font-size seems to be broken, because when I resize the window emacs claims the window is "80x24" but in reality it is much wider (I'm guessing twice as wide). --scott -- ( http://cscott.net/ ) --001a11438b942b1ecc05329253cf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In addition to the pop-up menus being misplaced, on my mac= hine (debian/testing, HiDPI=3D2, emacs 24.5.1) I'm seeing the initial w= indow sizes being much too wide.=C2=A0 The scaling from columns from font-s= ize seems to be broken, because when I resize the window emacs claims the w= indow is "80x24" but in reality it is much wider (I'm guessin= g twice as wide).
=C2=A0 --scott

--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 ( http://cscott.net/ )
--001a11438b942b1ecc05329253cf-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 14:31:11 2016 Received: (at 20619) by debbugs.gnu.org; 16 May 2016 18:31:11 +0000 Received: from localhost ([127.0.0.1]:54265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NIN-0003jE-7n for submit@debbugs.gnu.org; Mon, 16 May 2016 14:31:11 -0400 Received: from mail-ig0-f182.google.com ([209.85.213.182]:35502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NIM-0003j2-7E for 20619@debbugs.gnu.org; Mon, 16 May 2016 14:31:10 -0400 Received: by mail-ig0-f182.google.com with SMTP id bi2so59356375igb.0 for <20619@debbugs.gnu.org>; Mon, 16 May 2016 11:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Ln3zgYFO++CBY+MAyOcsVG2s2EpMxBs5h8iLVrFLC3I=; b=B+L2atB+zZz/q9ydl01GIhNMMGg4KynQI/hE5AvQtUJUxs4CcdUIdPvS6vo2PKNqxT J0g6TRhctJGlEtY3nTxUpZkCwKIJJ/IgsHHlQGNyF16wAtphifkCFNlOfln6sk4+TSyP 6tZasC+ZRJsBYwSVwLOs6SiSHWMERJi5k79xo/Jd6HIN20/A1i19jDgMJFEGPFJNPtpX y0JmQItNTGtl5xtAzbCHEroV9UlHKweYXBi7wEATyNjiL1F3iusUuuvvF5SJijLsrBxy 1/+8uH6RvBS37EerwKT7OwyDMKJ4/BWzh/z+0W/T0SG+vohxQRpLlNWxqNN3HGWEGJJn mGEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cscott-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Ln3zgYFO++CBY+MAyOcsVG2s2EpMxBs5h8iLVrFLC3I=; b=u9O8fm4J78WawJ+E1jY9SyNmJ0vU5hubaCiA8GQkVJn4vnfEJBUgk9IYPrCtRUumCj V4/VdH8JulYtAATzpBcTWk8ltPJYgVIZMpEnKdEE5YUAOgaM4UVnlM1P/WQhJECUQQ1I 30ESXExmwfD1CMsBMB1lhIDCOC9SdoG+LfAKMHSmVihftQbiOxlDk4nzH5vej6Nuzjy6 mqODMyjiJymKl9d7HYr8uXsoD/PTLWJSJFjY9AqZBMpAxH0sPbQVqaILKYAUrF9EQmXe tHR9WLIbnEhHF8LUnsKqKOSjqdUDKIIv6iN/tOdEXvSvbW0ac2nTT6MeXL6oTxDpVg0h Ac+w== 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:date :message-id:subject:from:to:cc; bh=Ln3zgYFO++CBY+MAyOcsVG2s2EpMxBs5h8iLVrFLC3I=; b=WdH8fjPbpjGzLaoq+HobmRmQyhM+yMcHgXW4qkqCvh8ztLXzm3sOB228enT/VLt/Rt 2KB7lPEGei9xHXztuR2ywLEPJ4k1o6bQcuH4fv/NrSU6/VAbBGweKi/Llo1iHmGd89JR pU3N5l3U/TuEquqBbFlmNJr066/vFJvn7ItMnRPx2waYD8B1Pgi/HKzz3Jt7XKmkEAqe jg/lTebaykfUoUvws+Dr4d6odk2CzVCYpBUtZD8AU0tSfdrNIJl6yPfj0G6D8Y01ocGg CHFEWPjzTYb1UE5u0PpAM1mx3w4MktKUVfdTo8VIWae2IfFgg6PAIfZRxamQGTGnN78M HMyA== X-Gm-Message-State: AOPr4FVHQ47c0cbofiwIGxpB/ZK65XT9xoHTvOxyZ3WNne4LXhrv3qJ3SfhUaLjf0DcgKAtkxJUocblOEtSt1Q== MIME-Version: 1.0 X-Received: by 10.50.161.164 with SMTP id xt4mr10691623igb.97.1463423464539; Mon, 16 May 2016 11:31:04 -0700 (PDT) Received: by 10.79.76.79 with HTTP; Mon, 16 May 2016 11:31:04 -0700 (PDT) In-Reply-To: <573982D6.1070706@gmx.at> References: <555CD05C.4070303@stsci.edu> <573982D6.1070706@gmx.at> Date: Mon, 16 May 2016 14:31:04 -0400 X-Google-Sender-Auth: kX0ILJfsmnNFkMvXq0UNw_kbfNQ Message-ID: Subject: Re: bug#20619: Another HiDPI issue From: "C. Scott Ananian" To: martin rudalics Content-Type: multipart/alternative; boundary=14dae934113fc299c00532f9d319 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.5 (/) --14dae934113fc299c00532f9d319 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I read the patch and did not see anywhere where it affected the main window size. The changes appear to be isolated to the position of popups; in particular the only functions modified are `xg_show_tooltip` and `create_and_show_popup_menu`. I am happy to try a patch if it will address the main window size issues I am seeing. --scott =E2=80=8B --14dae934113fc299c00532f9d319 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I read the patch and did not see anywhere where it affecte= d the main window size. The changes appear to be isolated to the position o= f popups; in particular the only functions modified are `xg_show_tooltip` a= nd `create_and_show_popup_menu`.=C2=A0 I am happy to try a patch if it will= address the main window size issues I am seeing.
=C2=A0 --scott
= =E2=80=8B
--14dae934113fc299c00532f9d319-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 14:44:55 2016 Received: (at 20619) by debbugs.gnu.org; 16 May 2016 18:44:55 +0000 Received: from localhost ([127.0.0.1]:54295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NVe-00045A-SW for submit@debbugs.gnu.org; Mon, 16 May 2016 14:44:55 -0400 Received: from mout.gmx.net ([212.227.15.19]:57798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NVd-00044n-1D for 20619@debbugs.gnu.org; Mon, 16 May 2016 14:44:53 -0400 Received: from [192.168.1.101] ([212.95.7.56]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MMTEM-1axIbz3K7q-008JWQ; Mon, 16 May 2016 10:20:45 +0200 Message-ID: <573982D6.1070706@gmx.at> Date: Mon, 16 May 2016 10:20:38 +0200 From: martin rudalics MIME-Version: 1.0 To: "C. Scott Ananian" , 20619@debbugs.gnu.org Subject: Re: bug#20619: Another HiDPI issue References: <555CD05C.4070303@stsci.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:YyTJ1tOAyccEszTSNa27xVdW6eqwx9pOc2DQC7kvN6B5OZryeUu HSgRfIkWPV+O25RzQfRFubY/65XwY2zvlHVtJE7x8zysRRbOddzzbKft0ge6SqwSz9jRNaO sQRmHh2NuZlG4Nwqc+3i0OV9SAq8e+Rr0q+TBverk19cGScSOUM7prKO+ePS1lZizGXSDyx 3pRptwZBMPHP6sHPmheyA== X-UI-Out-Filterresults: notjunk:1;V01:K0:qhluQ8UyPhI=:hkq0h4LTLwJdXk8FuFb7K5 /3E2qQvSmrrjlsAbRZehkIhIjN/PCkmcbhSpOsuHpy2UmUfh8LpKSjhEern4kgfVR8hQkK2Br QeQDkW8kX6B+0qNjeE/L9AcAZSmH5QJCO+yQiP4+V7pGaZjUdDRlqfSr1R4tLSoPsm8VmpEyl HgLUVe+fgOSS58rLyGrKCm1ZB6uEkndlgr3tzKfXxYecIpN9FZNr+hvTibMZvMUAKEo4xrXWR e4OSIn9/WelYflfpaUkaJSlwGY30VW/0fKSDO2fTpZZZ5lG6w5mbdPVmp7NPJD4EeMM/TOmG/ vG3Lof7+7M0i84LQub4Kwg1t0QRSO5N3MHwVK4Z6WMsjvQ9aYIYHos/to5xgAFbPHojNbyWO1 f6KOybEBhijDeiFqwfkX8PAILE9njYVNueWeoPJS+zkaMRxlbxdItcLBGeLdKeNMecGRGJM9y YovNFMmrDhUc6zpcSbycz18g9KX/AEhO9+ipdcw5d2C0g0mNwrtawi+XAUWHftPVireJTOWyh 2zZYNQlvRSK19+rk3sx3GO92vG5QI9oLqf8mYOcE/cTDpi7TJwimmVbOojkk3LdYel5vxOUp0 cxbfsiVUXMQJzNMZmmZRtzVVLppIuTPJR66m91UmIGgQHi4HAGk5PGVh/IW8tsaYZMb2dvUz8 fBQbsrBz1BDqsEVBNXP0Mh1IjnZWEaj+C+PC4xaeF/lRKuP5bekBKvpyaTg0uhlqJOJ+2/4Ok w1MEH8rKI4o/1GWfy4Mrr5QXXD3JD7mHdid2JNaWxZA+wHcnQMYbnM0ih516IPx65H6OmHtX8 H5unPeP2jmamAaLjvguSp6aa6b5XQ== X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 20619 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.1 (/) > In addition to the pop-up menus being misplaced, on my machine > (debian/testing, HiDPI=2, emacs 24.5.1) I'm seeing the initial window sizes > being much too wide. The scaling from columns from font-size seems to be > broken, because when I resize the window emacs claims the window is "80x24" > but in reality it is much wider (I'm guessing twice as wide). Did you ever try the patch submitted to this thread? martin From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 03:01:24 2016 Received: (at 20619) by debbugs.gnu.org; 18 May 2016 07:01:24 +0000 Received: from localhost ([127.0.0.1]:56466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2vTw-00064P-0S for submit@debbugs.gnu.org; Wed, 18 May 2016 03:01:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:53817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2vTt-00064C-T3 for 20619@debbugs.gnu.org; Wed, 18 May 2016 03:01:22 -0400 Received: from [192.168.1.100] ([212.95.7.115]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lu7ty-1bkcIe08qk-011Vdx; Wed, 18 May 2016 09:01:14 +0200 Message-ID: <573C1321.80809@gmx.at> Date: Wed, 18 May 2016 09:00:49 +0200 From: martin rudalics MIME-Version: 1.0 To: "C. Scott Ananian" Subject: Re: bug#20619: Another HiDPI issue References: <555CD05C.4070303@stsci.edu> <573982D6.1070706@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:24FWXPZOB0iR9bA7mAM4oSZ17dRqZsoni4J1+s0hYYob2fowdFC nOaLA2AOr8FHmOjT3gMCoedIRWloIlif6AsEmiickIrbkaPeN5mvqLchPoeeJxqYlcdWgmG dmdqaYibst1STcinoVVVctrjFM9PRF87W9dfxJt4XOlHPxMYQN0WqfkuirTdbk1THQm7ZVV nxcuzuUSEG43xAAh9n/Sg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JlnPJNqKX/I=:dOM8fyvDrYW22oOQ+2uKuj kEFnsf7Fz5clzMsXTsVyDRvtvl5VwxrYZv0tPRbfwT6LyZ6iAOe9LwLt5UVc3Ao8efFejYtWx uuu1gonqaFqnj6YDAVeWSObCBwipG2WngClhIBk7FBhQ+vz7xx6uyBCQo/Pw74qKRh/J3KOWg TVyb2AiK375xoQcHIKyIxOLaAoESsONYHtXuHDfNAq5UaVqcxnkCmFUl57I5ht/1tKgZRqFUv m4PPNN1eQ2AmlCdl8x286D9XTZuG4RS9U/7eetfgYCzn0Y1usJYrGIfL43E3SsAR3WJThVUtz KV+Pe/7fx97kzQ7oQr2j47fJyu9wJ5e12Gp++oR6AOLeU5JSuHRr9NXvGQ+w1uwgh62eGEAF9 sS4s4x5patkWsn35xdJbzKraQY9Yy+Yk4Ym04cMv4I7FzbrL/whO/dW1U9u3VO/NC1hfSUwn8 wy/eQ7EAhR5WWnz/DBVgX5kXonZze+JKinLyXQARj02cB29D4790NmSKUpnT/9DpFIQQ4wWEf BYvMTwVK9cg16W4vDxfdm6goTcxQbMRo0ZrxY2N6et1c72onv9CxBSrzu+gnM3EKQjp//nGHZ 6mI4iK8eZCFcCG5nyFv8kfxMpdVpyqBwmEulOyM1IANxDt+tZRZ3o5K5fM+IHhrGcOsI+WR+v ajPs7A1qESRCzZbLrM3/+of3GpvZpUp7GQGUehjAg/Qe5tvff5fDdcHAVIi/4NdnACI1doHd4 /i1Tyd/cvPLA46eay1s0tZ0JCI55Qxwq340QO8eCMzHfJS51W4amOg9tTY2qO/DBjKRc/96eh cFD0X1SfqkOWDv2Q87RswDDqclI8kxmMvIXlwGZ2rwOhaZyFTM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) > I read the patch and did not see anywhere where it affected the main window > size. The changes appear to be isolated to the position of popups; in > particular the only functions modified are `xg_show_tooltip` and > `create_and_show_popup_menu`. I am happy to try a patch if it will address > the main window size issues I am seeing. Ryan Prior has written a patch for the original problem posted in this thread. Unfortunately, Michael Droettboom (the poster of the problem) never responded and neither did other persons who reported similar problems. In December, for example, David Christiansen promised to test Ryan's patch as soon as he would get home from honeymoon. Apparently he never did ... Since you are able to reproduce the problem, it would have been a nice gesture if you applied the patch and tested whether it resolves the original problem. Maybe this way you could have provided sufficient motivation for Ryan to investigate the problem you see too. As it stands, it's virtually impossible to convince HiDPI users to test Ryan's patch and we very likely lost another contributor. martin From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 08:20:54 2016 Received: (at 20619) by debbugs.gnu.org; 18 May 2016 12:20:54 +0000 Received: from localhost ([127.0.0.1]:56583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b30T8-0006fX-0M for submit@debbugs.gnu.org; Wed, 18 May 2016 08:20:54 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:34322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b30T5-0006fJ-JQ for 20619@debbugs.gnu.org; Wed, 18 May 2016 08:20:52 -0400 Received: by mail-io0-f180.google.com with SMTP id 190so62095964iow.1 for <20619@debbugs.gnu.org>; Wed, 18 May 2016 05:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=4Qg6nIiqoscCO1knh+ASKcxzhBAGxh9aYTyzOJTRMGk=; b=sU64oFGHo/lmxFpJT/b8rNFJvI3bjWX2yIT4y1sjp9e//X7sO4U2WUZQEC+vPt4Gs/ /HDUi2oixGmcPRKKEnsuZdLIZIJVWGbE0NAvWlo210S1k+2fYMZ2Nyh3fsuyQmJR99Zd +wrIz+a9sCLmwFiRJUEoTIl3qRFAKEdBoUQDWCXlL8Eyljt002YotlDT/inOlOVJ8J2U 9SOqEG9aqS+yUzzI2qk0uiLcqDYfYoeGPwz39U5X+XnUsfKeI+UgKInMSighOdy4/JRS nfudiXBFjlANKULn4To/in2/Z1qfrDXKopaKKJzwNE9Cqwzdme85UyoRaq4gAIJP7nEP 4IrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cscott-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=4Qg6nIiqoscCO1knh+ASKcxzhBAGxh9aYTyzOJTRMGk=; b=ZgNvNBfJ+HvkPTg4aL4Jm1C/SJOOPu8N3HCli6n26BUYncqODyPyTMdU/NqzkmGAaR EDEPgF3X03H6S6P1s23fT8ubDxNq9LAhn+DQiJQ7jhl+wREHlLaoDVeOPO8xVearZtNF /DuVnFtPzmoOxxPvDh43Z0tTdllncTYYp7YOepA0VlFfIfRTb3yXhWABQT8r1IeRUyiG PT0JAUyYFSPYCUtLBMOaA3VtOyG8siCp88hNC2Rqki7lSQ8Y/N4xCWTDPoUfC9jz7fPW 4CCnyyR+t+8Vez9PGjOKloVfXOJGkX5+5g0lV1OjiQgzDkCMm/G6fSBexMQbBnDqphlS Uf2Q== 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:date :message-id:subject:from:to:cc; bh=4Qg6nIiqoscCO1knh+ASKcxzhBAGxh9aYTyzOJTRMGk=; b=cW+R0OfcQ7s7OG0OemSK1XVTe4Q+I0gH7vgjRSnELwo/lpbBNrx5b2Zkb4j/dYF/Mk 8Awcl0e+e1GizJlAR0XSLZGj/iqqP3Ja0AY0FuMDaUOEhnB0B3DiZ7JopTqz8+dOPIfg xbJ0F42CL5q586C8y3pqpO4km0W5F4IAzpl1lPNZQm+RFhp8ZY/jKycygTiS3+fX/4gJ iDNYOwONTwBIoHGT/WBr9XL3wo9klKgz0WLVY6cdkofPhqtwMw+tKRCTbyxg8Ix8ZFwm HJaeWUC+1jFpeE4/78Q3cdGp3UPEja+BUFIWmWtFpgkAsiFIBl6MzHw43bTR4cud34hP 9Wqw== X-Gm-Message-State: AOPr4FVFjdxJ9+lRWggTgdodDMSGYeFEfsGlzW2gQ6tTQh5S6GtzKqq3ErXgXcHWjFP9VU0A/WIV2bjNTuuVww== MIME-Version: 1.0 X-Received: by 10.107.184.10 with SMTP id i10mr4710881iof.26.1463574046010; Wed, 18 May 2016 05:20:46 -0700 (PDT) Received: by 10.79.76.79 with HTTP; Wed, 18 May 2016 05:20:45 -0700 (PDT) Received: by 10.79.76.79 with HTTP; Wed, 18 May 2016 05:20:45 -0700 (PDT) In-Reply-To: <573C1321.80809@gmx.at> References: <555CD05C.4070303@stsci.edu> <573982D6.1070706@gmx.at> <573C1321.80809@gmx.at> Date: Wed, 18 May 2016 08:20:45 -0400 X-Google-Sender-Auth: FoDvGmvywo7b3iBmid-1_gVnxRY Message-ID: Subject: Re: bug#20619: Another HiDPI issue From: "C. Scott Ananian" To: martin rudalics Content-Type: multipart/alternative; boundary=94eb2c07706c1d807b05331ce35e X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.5 (/) --94eb2c07706c1d807b05331ce35e Content-Type: text/plain; charset=UTF-8 It's not like it's hard to reproduce: download gnome-tweak-tool and set your scaling factor to 2. It doesn't require any special hardware. --94eb2c07706c1d807b05331ce35e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

It's not like it's hard to reproduce: download gnome= -tweak-tool and set your scaling factor to 2.=C2=A0 It doesn't require = any special hardware.

--94eb2c07706c1d807b05331ce35e-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 11:32:42 2016 Received: (at 20619) by debbugs.gnu.org; 18 May 2016 15:32:42 +0000 Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b33Sj-0002iu-Ss for submit@debbugs.gnu.org; Wed, 18 May 2016 11:32:42 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:35417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b30WW-0006kx-D6 for 20619@debbugs.gnu.org; Wed, 18 May 2016 08:24:24 -0400 Received: by mail-io0-f170.google.com with SMTP id d62so62247778iof.2 for <20619@debbugs.gnu.org>; Wed, 18 May 2016 05:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc; bh=hJ01WFwZK6xlPaBeF3QMZbdZ/IRn0i2S3gEfBsNV2Qo=; b=NSdr+Dm/gVCUfAp9pOiHdfnJ5SRNnBKXYASWXQpII6CeHRocL/yAxP1ScTzK9ev6bu 4bslv+sALsmpuM8O5GAeKBd9RHxkJhEnx9taYhcaYhF4HP0Vj0ywRb/BuD3jWR/v/vQH nzlO+tlfvVcIthsrymanXyyn0tmzVIkfzpIRoBzXkSWlrYWGUQ7AXpWiHARf9hwLLUYq EoqajqyL5NcwX3EeTY0vIBdqwpKMNMccG3racBDhdKYU6RoHy57yXCiaVzv4B7bSS6mI bMaHyeMApSAAmyDGdGUtrw8pwGMtpW3+b1vvGJkJOC0VsNFVSBi0OGsvN1cZnA1UrV6e FWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc; bh=hJ01WFwZK6xlPaBeF3QMZbdZ/IRn0i2S3gEfBsNV2Qo=; b=g6/N+5r4NlBHpJgq0KCiPTnt/826pWi5QTSx1+VIpjzG9Z0+W5WEW0SeAfXOzJDWlL 3gnNOTCv2G2KDIK7LcyApdEvk9xeutpafMhaQODhT4mV69Zhw0Qd1zo3vuIJBuvS83dQ a6KywDJegosoAkTEGSkkWarGLQNNPWr0A7f/dnisa723lLLwRivfpWz6s7C9RjaUoxGX 8/7GyzjiJz8PbV4M2PTSbh026H86U6m1rVRMsRg9FWxVCAqM2kFnn/rFaWE6y0iZeBGN ccp9UpBzyiLPNfX8am6jKgo2eQxndRMNoK7+nf4tjQeXfwC8P8UuyaDo0d/SzuU4Hkfg lzxQ== X-Gm-Message-State: AOPr4FX0oiJh6upo4JfRMJ1UgjjbezMhRgH5bESaZkMbrROIHKsVLiW8/MkxqmYCvO9FLz3NV2uuVjTFsbB1BQ== MIME-Version: 1.0 X-Received: by 10.107.182.137 with SMTP id g131mr4885586iof.27.1463574259103; Wed, 18 May 2016 05:24:19 -0700 (PDT) Received: by 10.79.76.79 with HTTP; Wed, 18 May 2016 05:24:19 -0700 (PDT) Received: by 10.79.76.79 with HTTP; Wed, 18 May 2016 05:24:19 -0700 (PDT) In-Reply-To: References: <555CD05C.4070303@stsci.edu> <573982D6.1070706@gmx.at> <573C1321.80809@gmx.at> Date: Wed, 18 May 2016 08:24:19 -0400 Message-ID: Subject: Re: bug#20619: Another HiDPI issue From: "C. Scott Ananian" To: martin rudalics Content-Type: multipart/alternative; boundary=001a114acd8ed0fee705331cef2b X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 X-Mailman-Approved-At: Wed, 18 May 2016 11:32:41 -0400 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cscott@cscott.net Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a114acd8ed0fee705331cef2b Content-Type: text/plain; charset=UTF-8 What would be *more* useful, instead of guilt-tripping contributors, is to offer some technical advice on the issue: where my program is likely to be fine, what part of the code I might consider reading, and useful insight at all. Then you might motivate me to scratch my own itch and *gain* a contributor. Instead you are in the process of losing two. On May 18, 2016 8:20 AM, "C. Scott Ananian" wrote: It's not like it's hard to reproduce: download gnome-tweak-tool and set your scaling factor to 2. It doesn't require any special hardware. --001a114acd8ed0fee705331cef2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

What would be *more* useful, instead of guilt-tripping contr= ibutors, is to offer some technical advice on the issue: where my program i= s likely to be fine, what part of the code I might consider reading, and us= eful insight at all.=C2=A0 Then you might motivate me to scratch my own itc= h and *gain* a contributor.=C2=A0 Instead you are in the process of losing = two.

On May 18, 2016 8:20 AM, "C. Scott Ananian&= quot; <cscott@cscott.net> wr= ote:

It'= ;s not like it's hard to reproduce: download gnome-tweak-tool and set y= our scaling factor to 2.=C2=A0 It doesn't require any special hardware.=

--001a114acd8ed0fee705331cef2b-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 19 08:55:30 2016 Received: (at 20619) by debbugs.gnu.org; 19 May 2016 12:55:30 +0000 Received: from localhost ([127.0.0.1]:57696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3NUA-0006E5-I2 for submit@debbugs.gnu.org; Thu, 19 May 2016 08:55:30 -0400 Received: from mout.gmx.net ([212.227.15.15]:53803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3NU9-0006Dt-J7 for 20619@debbugs.gnu.org; Thu, 19 May 2016 08:55:30 -0400 Received: from [192.168.1.101] ([212.95.7.103]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MTCDO-1bBegu0YK6-00S9yr; Thu, 19 May 2016 14:55:22 +0200 Message-ID: <573DB7A8.5060805@gmx.at> Date: Thu, 19 May 2016 14:55:04 +0200 From: martin rudalics MIME-Version: 1.0 To: cscott@cscott.net Subject: Re: bug#20619: Another HiDPI issue References: <555CD05C.4070303@stsci.edu> <573982D6.1070706@gmx.at> <573C1321.80809@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:1Hekrrp+n66ReJmHOKfgMKX1UI8X9tHFa2r3gzcDvp5iPUp8vQm TrBkZleZ4kiMQr6HDcHotzglwcXZ8cQ7uAY81W67L09JvzCJgtHhsSNJ+JwnbofZXyih2bz gtqB7VSpKgOBoaH5ExVneSzXvNvDLUnFN8uMjjKE1tPrW8ebRsvyBIzATJ+53JGCxLT/Ne6 53B3F7x18KofJznum+bZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:m/dFgxp6uPY=:S7NkBTVCjFmMbb4QVZr5qx S9wAnr0x8j80HyM+ntoOo//IqAy7oFbaj+0PKhyav+igklYXXS3gYE5riShM8N9iagrrfyMxf RvoMGaEboklmfoIEO+7M7traRp0JE5df7VCa+Ex/fdl+YvpTjtZskwURISj2zvy9k/m6wiNHF g2aVXB2EoAN4ZUooM8go0+nAWkA2+f3LVbl81zn3ZcaI4MbiQ7CTTR+qGjSt0buN3Sf2tYANW HracPqHNDLfCd9a+7wZYDqL4mDBuXk5ncGXmr2mMfNX1GFZczIrJBEvFuGhig6/er5WwrkTzz P89BcgxvB3NxMeyCrdfBggstXmefAroOveNjO64pgObgJe48RGSKGL/Ae2PKVPpHMSz+chVYP gVOhn84ppnXVMdHgRPJSMUSjeFryqSAZ3sfHMw2Bgm72KC2wCLccg4IECfHTZDKzsvJV0wR2/ L3HH4cRh5Hb5BFOEriOIGTqOR6icpBs1cMgPPCOhyxL3Llhf1tCnCvEuTTY2dx5Kq075TbRSD PBZaio44H2M/FTlJiSyNqajBmp8Owz7X/zAwswQ2NGJpGftRTqd/51yHbgp/NexC7Nj8VVTsW JOzshYuEDb96nvN9bj1Xd4yprUWymYpgKhgXdXDW26IfO9bSIB6TIK97GALmJrcU4EuigDWP3 H05qxgxWK6p+j5AgIuKTgqJMA0vpLWgSkyePuUgZ7K5+h+wUCswRrRnsdPOS5TA6Ni5HGoP5h OtnrIcvFe1djhunJsafhGuwkaTsGgBnlyICptA1k6RsqSID5aWAY5gInIhDPnT8bhd9JNg+tq VJLVezM28elTxqwXfn+sgfAbqMjAjRVknfb+pVuhaU5Hr07UOA= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) > It's not like it's hard to reproduce: download gnome-tweak-tool and set > your scaling factor to 2. It doesn't require any special hardware. ISTR that Glenn already proposed something similar. But I don't use GNOME. I use xfce and spent an entire afternoon to make xfce accept the resolution of my display. The only things I remember about that is that there's hardly anything useful to be found about this issue on the Web and that I had to resort to some non-standard means to have my settings restored in subsequent sessions. I'm simply too afraid to break these settings by simulating a fictitious high resolution display. > What would be *more* useful, instead of guilt-tripping contributors, is to > offer some technical advice on the issue: where my program is likely to be > fine, what part of the code I might consider reading, and useful insight at > all. Then you might motivate me to scratch my own itch and *gain* a > contributor. Instead you are in the process of losing two. Offering technical advice on this issue is not easy for me. In the first place I've so far not been able to understand what the HiDPI scaling issue is all about. I presume that font scaling is left to the application which means for Emacs that users who have set their HiDPI scaling factor to two usually will select a default font twice the usual size. Icon scaling is presumably also left to the application which probabaly means that the Emacs tool bar on a HiDPI scaled display looks very tiny. Are these assumptions correct? If so, scaling probably affects only the sizes and position of windows including subwindows and widgets for menus, scrollbars and tooltips needed to make the appearance of Emacs frames coherent. I said "probably" because the bug descriptions I've red so far do not allow me to draw a precise conclusion. Maybe we should resolve that issue first (see also my questions to Ryan in the thread of bug#20619): Which behaviors are reproducible under which desktop environments, toolkits etc. Now in the thread on bug#20619 Jan said that This is a huge undertaking, that requires changes in Emacs all over the place. Coordinates and sizes are used in many places. But IIUC we do have to identify and change only those places where Emacs passes/receives coordinates to/from the operating system, window manager, or toolkit. Internally, Emacs will proceed to think in its own coordinates. And apparently we have to do that only for the gtk build. Do these assumptions make sense? Now IIUC again Ryan has already provided a solution for the positioning of popup menus and tooltips. IMO we would have to first check whether his approach to use xg_scale_x_y_with_widget is correct and popup menus and tooltips are placed correctly wrt a (probably only fictitiously) correctly positioned frame. If so we can see whether that function can be used for the remaining elements as well. WDYT? martin From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 22 10:33:29 2016 Received: (at 20619) by debbugs.gnu.org; 22 Dec 2016 15:33:29 +0000 Received: from localhost ([127.0.0.1]:51730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK5N3-0007Si-7H for submit@debbugs.gnu.org; Thu, 22 Dec 2016 10:33:29 -0500 Received: from ufc-sortie.univ-fcomte.fr ([194.57.91.199]:55708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK5N1-0007SO-Ba for 20619@debbugs.gnu.org; Thu, 22 Dec 2016 10:33:28 -0500 Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc-sortie.univ-fcomte.fr (Postfix) with ESMTP id 2994C6041E for <20619@debbugs.gnu.org>; Thu, 22 Dec 2016 16:33:21 +0100 (CET) Received: from smtps.univ-fcomte.fr (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with ESMTP id 0A048203025B for <20619@debbugs.gnu.org>; Thu, 22 Dec 2016 16:33:21 +0100 (CET) To: 20619@debbugs.gnu.org From: Eugen Dedu Subject: Improving HiDPI experience with emacs Message-ID: <4bc584cc-e95a-b400-f571-225148b441b7@univ-fcomte.fr> Date: Thu, 22 Dec 2016 16:33:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 20619 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.1 (---) Hi, I have just enabled hidpi on my screen and noticed that emacs has several issues I would really like to see them fixed, since I use it extensively. (For those interested, I also wrote yesterday a page about my experiences at http://eugen.dedu.free.fr/docs/hidpi.html.) I do not use GNOME, but awesome. I just set GDK_SCALE=2 to have hidpi-aware applications, and this works on several applications. Everyone can test with "GDK_SCALE=X emacs", with X=1 (for normal screen, default value) and X=2 for hidpi. Is there any emacs developer wanting to fix this behaviour? I can test patches if needed (hope it is not harder than other applications). I use emacs 25.1.1 on debian. Best regards, -- Eugen From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 23 15:30:27 2016 Received: (at 20619) by debbugs.gnu.org; 23 Dec 2016 20:30:27 +0000 Received: from localhost ([127.0.0.1]:53016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKWTy-0002g8-Ui for submit@debbugs.gnu.org; Fri, 23 Dec 2016 15:30:27 -0500 Received: from ufc-sortie.univ-fcomte.fr ([194.57.91.199]:56370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKWTw-0002fu-UH for 20619@debbugs.gnu.org; Fri, 23 Dec 2016 15:30:25 -0500 Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc-sortie.univ-fcomte.fr (Postfix) with ESMTP id AAEA160455 for <20619@debbugs.gnu.org>; Fri, 23 Dec 2016 21:30:18 +0100 (CET) Received: from smtps.univ-fcomte.fr (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with ESMTP id 8B2C1906D for <20619@debbugs.gnu.org>; Fri, 23 Dec 2016 21:30:18 +0100 (CET) From: Eugen Dedu Subject: Scrollbars To: 20619@debbugs.gnu.org Message-ID: <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> Date: Fri, 23 Dec 2016 21:30:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 20619 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.1 (---) So I have successfully compiled emacs 25.1.1 to make tests. I applied the patch given in message #13, but it works partially, I will discuss about it later. Now, to advance emacs support for HIDPI I would like to fix the scrollbar. Do all people here agree that the scrollbar has a width twice as normal? The reason is that in src/gtkutil.c there is this code: int xg_get_default_scrollbar_width (void) { return scroll_bar_width_for_theme * xg_get_gdk_scale (); } where xg_get_gdk_scale returns GDK_SCALE variable, i.e. 2 in general. If I replace with: return scroll_bar_width_for_theme; the scrollbar is shown correctly. This change was made by https://github.com/emacs-mirror/emacs/commit/c0055ff5b03c9121ab5bf752496b09416f0f0a7d. I think there was an error there, or perhaps in the mean time (since May 2015) GTK has changed in a way so that scrollbars are taken into account. Anyway, using "GTK_SCALE=2 emacs" shows correctly the scrollbar with my proposition. Note that GDK_DPI_SCALE is only for font, AFAIU from https://developer.gnome.org/gtk3/stable/gtk-x11.html. What do you think? Would you commit such a modification? I would like to look into other issues as well. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 24 02:57:24 2016 Received: (at 20619) by debbugs.gnu.org; 24 Dec 2016 07:57:24 +0000 Received: from localhost ([127.0.0.1]:53166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKhCm-0002e5-4a for submit@debbugs.gnu.org; Sat, 24 Dec 2016 02:57:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKhCk-0002ds-37 for 20619@debbugs.gnu.org; Sat, 24 Dec 2016 02:57:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKhCb-0004iI-Rs for 20619@debbugs.gnu.org; Sat, 24 Dec 2016 02:57:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKhCb-0004iE-Ot; Sat, 24 Dec 2016 02:57:13 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3155 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cKhCa-0006d8-VS; Sat, 24 Dec 2016 02:57:13 -0500 Date: Sat, 24 Dec 2016 09:56:53 +0200 Message-Id: <83h95tzrne.fsf@gnu.org> From: Eli Zaretskii To: Eugen Dedu In-reply-to: <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> (message from Eugen Dedu on Fri, 23 Dec 2016 21:30:17 +0100) Subject: Re: bug#20619: Scrollbars References: <555CD05C.4070303@stsci.edu> <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) > From: Eugen Dedu > Date: Fri, 23 Dec 2016 21:30:17 +0100 > > Now, to advance emacs support for HIDPI I would like to fix the > scrollbar. Do all people here agree that the scrollbar has a width > twice as normal? The reason is that in src/gtkutil.c there is this code: > > int > xg_get_default_scrollbar_width (void) > { > return scroll_bar_width_for_theme * xg_get_gdk_scale (); > } > > where xg_get_gdk_scale returns GDK_SCALE variable, i.e. 2 in general. > > If I replace with: > return scroll_bar_width_for_theme; > the scrollbar is shown correctly. > > This change was made by > https://github.com/emacs-mirror/emacs/commit/c0055ff5b03c9121ab5bf752496b09416f0f0a7d. > I think there was an error there, or perhaps in the mean time (since > May 2015) GTK has changed in a way so that scrollbars are taken into > account. What is your version of GTK? That commit points to a bug report (bug#20432), so this change is not a mistake, it did fix a real problem with scroll bars. We could make it conditional on the GTK version, though. The bug report mentions a specific GTK version. > Note that GDK_DPI_SCALE is only for font, AFAIU from > https://developer.gnome.org/gtk3/stable/gtk-x11.html. The code you mention doesn't use GDK_DPI_SCALE. > What do you think? Would you commit such a modification? I don't think we can simply revert the change in question, but maybe we could use different code based on GTK version. > I would like to look into other issues as well. Thank you! I see bugs 20432, 21469, and 18429 that might be relevant. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 27 17:45:39 2016 Received: (at 20619) by debbugs.gnu.org; 27 Dec 2016 22:45:39 +0000 Received: from localhost ([127.0.0.1]:57352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cM0V1-0007tg-DX for submit@debbugs.gnu.org; Tue, 27 Dec 2016 17:45:39 -0500 Received: from ufc-sortie.univ-fcomte.fr ([194.57.91.199]:48104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cM0Uz-0007tP-0u for 20619@debbugs.gnu.org; Tue, 27 Dec 2016 17:45:38 -0500 Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc-sortie.univ-fcomte.fr (Postfix) with ESMTP id 927C3600A0; Tue, 27 Dec 2016 23:45:30 +0100 (CET) Received: from smtps.univ-fcomte.fr (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with ESMTP id 2F60420301F9; Tue, 27 Dec 2016 23:45:30 +0100 (CET) Subject: Re: bug#20619: Scrollbars To: Eli Zaretskii References: <555CD05C.4070303@stsci.edu> <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> <83h95tzrne.fsf@gnu.org> From: Eugen Dedu Message-ID: Date: Tue, 27 Dec 2016 23:45:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <83h95tzrne.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.1 (---) On 24/12/16 08:56, Eli Zaretskii wrote: >> From: Eugen Dedu >> Date: Fri, 23 Dec 2016 21:30:17 +0100 >> >> Now, to advance emacs support for HIDPI I would like to fix the >> scrollbar. Do all people here agree that the scrollbar has a width >> twice as normal? The reason is that in src/gtkutil.c there is this code: >> >> int >> xg_get_default_scrollbar_width (void) >> { >> return scroll_bar_width_for_theme * xg_get_gdk_scale (); >> } >> >> where xg_get_gdk_scale returns GDK_SCALE variable, i.e. 2 in general. >> >> If I replace with: >> return scroll_bar_width_for_theme; >> the scrollbar is shown correctly. >> >> This change was made by >> https://github.com/emacs-mirror/emacs/commit/c0055ff5b03c9121ab5bf752496b09416f0f0a7d. >> I think there was an error there, or perhaps in the mean time (since >> May 2015) GTK has changed in a way so that scrollbars are taken into >> account. > > What is your version of GTK? That commit points to a bug report > (bug#20432), so this change is not a mistake, it did fix a real > problem with scroll bars. We could make it conditional on the GTK > version, though. The bug report mentions a specific GTK version. I use gtk 3.22.5. To reproduce the exact environment when that commit was made, I pulled the repository at the commit right before that change and compiled it. I had one compile error that I fixed with an #undef, and another one: make[1]: *** [bootstrap-emacs] Segmentation fault which I have not tried to fix. >> Note that GDK_DPI_SCALE is only for font, AFAIU from >> https://developer.gnome.org/gtk3/stable/gtk-x11.html. > > The code you mention doesn't use GDK_DPI_SCALE. Indeed. I wrote this because in the bug 20432 which the commit fixed it was mentioned GDK_DPI_SCALE too. >> What do you think? Would you commit such a modification? > > I don't think we can simply revert the change in question, but maybe > we could use different code based on GTK version. If I make an #ifdef with gtk 3.22, is that fine to do the commit? Everyone can test with a gtk-enabled emacs simply using "GDK_SCALE=2 emacs". >> I would like to look into other issues as well. > > Thank you! I see bugs 20432, 21469, and 18429 that might be relevant. I have looked at them, but I think the right thing to do is just to fix using conditionals, things have changed in the last 1-1.5 years (when those bugs were written) it seems. -- Eugen From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 28 10:41:30 2016 Received: (at 20619) by debbugs.gnu.org; 28 Dec 2016 15:41:30 +0000 Received: from localhost ([127.0.0.1]:58195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMGM6-0002bq-Fw for submit@debbugs.gnu.org; Wed, 28 Dec 2016 10:41:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMGM4-0002ba-FK for 20619@debbugs.gnu.org; Wed, 28 Dec 2016 10:41:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMGLw-0003ag-Dq for 20619@debbugs.gnu.org; Wed, 28 Dec 2016 10:41:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGLw-0003ab-AR; Wed, 28 Dec 2016 10:41:20 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3761 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cMGLv-000475-K9; Wed, 28 Dec 2016 10:41:20 -0500 Date: Wed, 28 Dec 2016 17:41:13 +0200 Message-Id: <83wpekukme.fsf@gnu.org> From: Eli Zaretskii To: Eugen Dedu In-reply-to: (message from Eugen Dedu on Tue, 27 Dec 2016 23:45:24 +0100) Subject: Re: bug#20619: Scrollbars References: <555CD05C.4070303@stsci.edu> <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> <83h95tzrne.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) > Cc: 20619@debbugs.gnu.org > From: Eugen Dedu > Date: Tue, 27 Dec 2016 23:45:24 +0100 > > > What is your version of GTK? That commit points to a bug report > > (bug#20432), so this change is not a mistake, it did fix a real > > problem with scroll bars. We could make it conditional on the GTK > > version, though. The bug report mentions a specific GTK version. > > I use gtk 3.22.5. > [...] > >> What do you think? Would you commit such a modification? > > > > I don't think we can simply revert the change in question, but maybe > > we could use different code based on GTK version. > > If I make an #ifdef with gtk 3.22, is that fine to do the commit? Only as the last resort, IMO. I'd be much happier if someone could explain how come this is/was a problem for GTK+ v3.16.2, but not for v3.22.5. Is it possible to ask someone on some GTK+ forum? Or maybe someone who reads this can explain that? > Everyone can test with a gtk-enabled emacs simply using "GDK_SCALE=2 emacs". I can't, sadly. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 28 11:36:00 2016 Received: (at 20619) by debbugs.gnu.org; 28 Dec 2016 16:36:00 +0000 Received: from localhost ([127.0.0.1]:58209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMHCq-0003vx-Ek for submit@debbugs.gnu.org; Wed, 28 Dec 2016 11:36:00 -0500 Received: from ufc-sortie.univ-fcomte.fr ([194.57.91.199]:32828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMHCn-0003vk-Dz for 20619@debbugs.gnu.org; Wed, 28 Dec 2016 11:35:58 -0500 Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc-sortie.univ-fcomte.fr (Postfix) with ESMTP id 2799A6023C; Wed, 28 Dec 2016 17:35:51 +0100 (CET) Received: from smtps.univ-fcomte.fr (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with ESMTP id 056F320304A0; Wed, 28 Dec 2016 17:35:51 +0100 (CET) Subject: Re: bug#20619: Scrollbars To: Eli Zaretskii References: <555CD05C.4070303@stsci.edu> <932ffe0b-8e9e-5a47-1a3f-47df43f7be42@univ-fcomte.fr> <83h95tzrne.fsf@gnu.org> <83wpekukme.fsf@gnu.org> From: Eugen Dedu Message-ID: <0797d0f3-de33-3086-69ac-d531f11852cc@univ-fcomte.fr> Date: Wed, 28 Dec 2016 17:35:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <83wpekukme.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 20619 Cc: 20619@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.1 (---) On 28/12/16 16:41, Eli Zaretskii wrote: >> Cc: 20619@debbugs.gnu.org >> From: Eugen Dedu >> Date: Tue, 27 Dec 2016 23:45:24 +0100 >> >>> What is your version of GTK? That commit points to a bug report >>> (bug#20432), so this change is not a mistake, it did fix a real >>> problem with scroll bars. We could make it conditional on the GTK >>> version, though. The bug report mentions a specific GTK version. >> >> I use gtk 3.22.5. >> [...] >>>> What do you think? Would you commit such a modification? >>> >>> I don't think we can simply revert the change in question, but maybe >>> we could use different code based on GTK version. >> >> If I make an #ifdef with gtk 3.22, is that fine to do the commit? > > Only as the last resort, IMO. I'd be much happier if someone could > explain how come this is/was a problem for GTK+ v3.16.2, but not for > v3.22.5. Is it possible to ask someone on some GTK+ forum? Or maybe > someone who reads this can explain that? Just for information, I looked also in the NEWS file of GTK and have not seen anything about the scrolllbars between 3.16.2 and 3.22.5. -- Eugen From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 09:05:21 2017 Received: (at control) by debbugs.gnu.org; 16 Jul 2017 13:05:21 +0000 Received: from localhost ([127.0.0.1]:41095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWjEf-0000un-N3 for submit@debbugs.gnu.org; Sun, 16 Jul 2017 09:05:21 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWjEd-0000uf-SQ for control@debbugs.gnu.org; Sun, 16 Jul 2017 09:05:20 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWjEb-0005oH-Rx for control@debbugs.gnu.org; Sun, 16 Jul 2017 15:05:19 +0200 Date: Sun, 16 Jul 2017 15:05:17 +0200 Message-Id: <87fudwr0qa.fsf@mouse> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27357 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) forcemerge 27357 21348 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 11:00:32 2017 Received: (at control) by debbugs.gnu.org; 17 Jul 2017 15:00:33 +0000 Received: from localhost ([127.0.0.1]:44599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Vg-0008S6-OJ for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:00:32 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:46016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Ve-0008Ry-Q3 for control@debbugs.gnu.org; Mon, 17 Jul 2017 11:00:31 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dX7VR-0006OA-S9 for control@debbugs.gnu.org; Mon, 17 Jul 2017 17:00:25 +0200 Date: Mon, 17 Jul 2017 17:00:17 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27357 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) tags 27357 fixed close 27357 From unknown Sun Aug 10 16:50:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Aug 2017 11:24:03 +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