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#19482: Changing to big font cause display problem Date: Sun, 22 Feb 2015 19:52:32 +0100 Message-ID: <54EA2570.8090504@gmx.at> References: <54DE424B.8070506@gmx.at> <7294F8DD-9324-4872-9AAA-5E4A229EFD04@icloud.com> <54E49C26.1070209@gmx.at> <0534A31D-5D69-4687-88CE-FA3C23A20278@icloud.com> <54E58941.3030005@gmx.at> <0255489D-9FE7-4C96-850D-2ED2FC80E42B@icloud.com> <54E77B3E.4000907@gmx.at> <1C7DF283-CB55-4360-AC5B-7565305D85F8@icloud.com> <54E86FA3.6010902@gmx.at> <54E9A8CB.8070605@gmx.at> <3EDF6985-A93A-46E9-9083-C2E496AB98C1@icloud.com> <24726EFE-F45F-4F6C-8941-AA1E5457D14F@swipnet.se> <54EA0D77.7010009@gmx.at> <504DD3FF-BA56-4407-AFE6-CCAA9F90BB31@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1424631208 16836 80.91.229.3 (22 Feb 2015 18:53:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2015 18:53:28 +0000 (UTC) Cc: =?UTF-8?Q?=E5=BC=A0=E6=B5=B7=E5=90=9B?= , 19482@debbugs.gnu.org To: "Jan D." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 19:53:16 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 1YPbeV-00084C-9L for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 19:53:15 +0100 Original-Received: from localhost ([::1]:40949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPbeU-0003HH-Ko for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 13:53:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPbeR-0003HA-SB for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 13:53:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPbeI-0001wN-4x for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 13:53:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPbeI-0001wJ-29 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 13:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YPbeH-0003Vq-Mi for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 13:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Feb 2015 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19482-submit@debbugs.gnu.org id=B19482.142463117313487 (code B ref 19482); Sun, 22 Feb 2015 18:53:01 +0000 Original-Received: (at 19482) by debbugs.gnu.org; 22 Feb 2015 18:52:53 +0000 Original-Received: from localhost ([127.0.0.1]:50842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPbe8-0003VT-Nq for submit@debbugs.gnu.org; Sun, 22 Feb 2015 13:52:53 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50940) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPbe6-0003VK-88 for 19482@debbugs.gnu.org; Sun, 22 Feb 2015 13:52:50 -0500 Original-Received: from [188.22.37.188] ([188.22.37.188]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M4WRI-1XcKyF1qXM-00yfTU; Sun, 22 Feb 2015 19:52:43 +0100 In-Reply-To: <504DD3FF-BA56-4407-AFE6-CCAA9F90BB31@swipnet.se> X-Provags-ID: V03:K0:14YkvwQ0xMMpIZN/ohB55QzdTAE/9EQUpYMB3vILpfMi7+8plSV nkLX3VNGUWLn2FS6YFzaP/xaHZNDCc7YIwBZVEOCt2+IfXGTsygPUlAPiGx9GrnnjIYnsrx GR8FqcN+q8tSdCAabuN7SYbbwnrZLhFvFELiT+cbSAheqd1XTq/sWxFvK69umyDqUAeyneZ Zl6VZ/3Odhkn/+xAsvpIg== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99706 Archived-At: >> IIUC FRAME_OUTER_TO_INNER_DIFF_Y is the height of title bar, tool bar > > Only for external toolbar. ... and external menubar, yes. BTW, when do we get the menu bar in the title bar? One line less to count ... > The define has just not been updated with something like FRAME_TOOLBAR_WIDTH: > > #define FRAME_OUTER_TO_INNER_DIFF_X(f) \ > ((f)->output_data.x->x_pixels_outer_diff) > #define FRAME_OUTER_TO_INNER_DIFF_Y(f) \ > ((f)->output_data.x->y_pixels_outer_diff \ > + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)) Sure. But I probably can't change it without changing its clients as well. >> And at >> least here a maximized frame shows decorations only on two orthogonal >> sides so the above is certainly not always correct. Do you have any >> better ideas? > > You can always compute them on the fly with something similar to what x_real_positions does and take into account the lower right corner as well as the upper left corner. I don't get the borders reported separately so I always distribute the space occupied by the one visible border among it and the non-existent border. Not a great deal obviously, but I'm sure that mouse position calculations are off by a few pixels in that case. > A bit offtopic for this bug anyway. True. martin