From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#21348: bug#21469: bug#21348: 25.0.50; Screen scaling factor >=2 causes menus, tooltips to display in the wrong place Date: Tue, 13 Oct 2015 17:51:42 +0200 Message-ID: <561D288E.7070803@gmx.at> References: <86twpvhjxf.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444751601 15708 80.91.229.3 (13 Oct 2015 15:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 15:53:21 +0000 (UTC) Cc: 20619@debbugs.gnu.org, 21469@debbugs.gnu.org, 18429@debbugs.gnu.org To: Ryan Prior , 21348@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 17:53:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zm1sy-0002Ow-Pk for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 17:53:09 +0200 Original-Received: from localhost ([::1]:37057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm1sy-0002FH-0U for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 11:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm1s1-0001Ha-KC for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 11:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm1rv-0005rl-JD for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 11:52:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm1rv-0005rh-Fx for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 11:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zm1rv-0001R8-By for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 11:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 15:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21348-submit@debbugs.gnu.org id=B21348.14447515145492 (code B ref 21348); Tue, 13 Oct 2015 15:52:03 +0000 Original-Received: (at 21348) by debbugs.gnu.org; 13 Oct 2015 15:51:54 +0000 Original-Received: from localhost ([127.0.0.1]:38928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm1rl-0001QR-Gx for submit@debbugs.gnu.org; Tue, 13 Oct 2015 11:51:53 -0400 Original-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 Original-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 In-Reply-To: <86twpvhjxf.fsf@gmail.com> 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 TWFdGr9qLOTdtStHyxLSmIuQZKwtQre9vrvPZdDTOZmpZoPpUPTwD1yka2HgxuFCIOd7dk1d X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107575 Archived-At: > 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