From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vivek Dasmohapatra Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Tue, 17 Jul 2018 20:02:12 +0100 (BST) Message-ID: References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B4C4911.8040900@gmx.at> <5B4D9F5F.20506@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1359138639-1531854137=:921" X-Trace: blaine.gmane.org 1531854068 28060 195.159.176.226 (17 Jul 2018 19:01:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2018 19:01:08 +0000 (UTC) User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) Cc: 22000@debbugs.gnu.org, David Engster To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 17 21:01:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffVDb-00079Q-2Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jul 2018 21:01:03 +0200 Original-Received: from localhost ([::1]:60942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffVFg-0001AL-C1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jul 2018 15:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffVFZ-0001A5-I6 for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 15:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffVFW-0007eM-EJ for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 15:03:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffVFW-0007e6-7x for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 15:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ffVFV-0004FW-PL for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 15:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vivek Dasmohapatra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jul 2018 19:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22000-submit@debbugs.gnu.org id=B22000.153185414216285 (code B ref 22000); Tue, 17 Jul 2018 19:03:01 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 17 Jul 2018 19:02:22 +0000 Original-Received: from localhost ([127.0.0.1]:45698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffVEr-0004EZ-Lp for submit@debbugs.gnu.org; Tue, 17 Jul 2018 15:02:22 -0400 Original-Received: from ceres.etla.org ([85.119.82.193]:46511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffVEp-0004ER-Tw for 22000@debbugs.gnu.org; Tue, 17 Jul 2018 15:02:20 -0400 Original-Received: from yaffle.pepperfish.net ([88.99.213.221] helo=[10.112.101.20]) by ceres.etla.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffVEn-00059h-SP; Tue, 17 Jul 2018 20:02:18 +0100 X-X-Sender: vivek@platypus.pepperfish.net In-Reply-To: X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "ceres.etla.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >> The height of the initial window goes down from 35 lines (630 pixels) >> to 33 lines (595 pixels). This patch (added on top of the previous one) should fix the frame size calculation. Still looking into whether there's a purely truncating solution. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:148617 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1359138639-1531854137=:921 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed >> The height of the initial window goes down from 35 lines (630 pixels) >> to 33 lines (595 pixels). This patch (added on top of the previous one) should fix the frame size calculation. Still looking into whether there's a purely truncating solution. --8323329-1359138639-1531854137=:921 Content-Type: TEXT/x-diff; name=0002-GTK3-correct-frame-height-calculation-with-scrollabl.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0002-GTK3-correct-frame-height-calculation-with-scrollabl.patch RnJvbSBlYWFlODYzODlkMjg2MmRjMTA4MDRmNDUxNjFmMDdjYjQ3NWI0OWEw IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogPT9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