From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame Date: Sat, 12 Sep 2015 16:09:08 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1442099426 16578 80.91.229.3 (12 Sep 2015 23:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2015 23:10:26 +0000 (UTC) Cc: 21415@debbugs.gnu.org To: martin rudalics ,Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 01:10:14 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 1Zatvx-0007Bw-1L for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2015 01:10:13 +0200 Original-Received: from localhost ([::1]:33967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zatvw-0005qj-DD for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Sep 2015 19:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zatvs-0005oh-9N for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zatvo-0000mF-UL for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:10:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zatvo-0000ls-M2 for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zatvn-0007dK-VR for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:10:04 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Sep 2015 23:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21415-submit@debbugs.gnu.org id=B21415.144209935329281 (code B ref 21415); Sat, 12 Sep 2015 23:10:03 +0000 Original-Received: (at 21415) by debbugs.gnu.org; 12 Sep 2015 23:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:58569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zatuy-0007cC-Kk for submit@debbugs.gnu.org; Sat, 12 Sep 2015 19:09:12 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:42914) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zatuv-0007c4-NM for 21415@debbugs.gnu.org; Sat, 12 Sep 2015 19:09:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date; bh=ZwQrNFYosxcHWrc0QzPeZSDHMzCW83Ay53A/v0zWQto=; b=rj9ylZltDUP58+5mWQ+jcTqqKqVjI/SP4pWVGQEOZDRgNo7rQ2nCOTJWSukX4kpUgNvuKmRptgZFhsmRcDmRc6aH7IgExc8sR1z+k2p2ACWB1zgQwbK+x16nkFy0mO7/; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:52473 helo=server.private.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1Zatut-000342-Vp; Sat, 12 Sep 2015 19:09:08 -0400 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com 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:106463 Archived-At: Anders: Thank you for weighing in and vetoing the proposed revision -- your insight is greatly appreciated. Martin: In addition to the feature mentioned by Anders, it turned out that the proposed revision (that have since been vetoed for good reason) was responsible for my missing four (4) pixels at the bottom of the screen -- i.e., the best I could achieve with that vetoed revision was 1920 x 1076 on a 1920 x 1080 screen. There were other problems I later discovered that were also linked to the proposed revision -- i.e., touching the mouse to the menubar to make it temporary visible, moved the frame downward; and, there was a side effect with the frame name whenever the frame was not squarely within the visible screen. I removed all of the following lines from the most recent patch and built a new Emacs: @@ -7196,8 +7196,8 @@ if (cols > 0 && rows > 0) NSTRACE (constrainFrameRect); NSTRACE_RECT ("input", frameRect); - if (ns_menu_bar_should_be_hidden ()) - return frameRect; +/// if (ns_menu_bar_should_be_hidden ()) +/// return frameRect; if (nr_screens == 1) return [super constrainFrameRect:frameRect toScreen:screen]; I am now able to achieve a frame size of 1920 x 1080 on a screen that is 1920 x 1080; there is no longer any problem with the frame moving when touching the menubar; and the frame title is working as it should be. So, the issue now remaining is how to let `make-frame` respect a frame parameter of `(top . 0)` upon frame creation when a user has `(setq ns-auto-hide-menu-bar t)`. As it stands now, it is necessary to programmatically call `(set-frame-size FRAME 0 0)` subsequent to each frame being created, and am doing the same each time Emacs starts for the initial frame. Keith