From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: master 57d2f24: * lisp/frame.el (make-frame-on-monitor): New command. (Bug#34516) Date: Thu, 28 Feb 2019 22:40:15 +0200 Organization: LINKOV.NET Message-ID: <87k1hjk5ow.fsf@mail.linkov.net> References: <20190225211142.21954.14993@vcs0.savannah.gnu.org> <20190225211144.0DD23206A2@vcs0.savannah.gnu.org> <83ef7umv4v.fsf@gnu.org> <877edluew8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="72688"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 22:14:36 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzT0l-000Ikb-GL for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2019 22:14:35 +0100 Original-Received: from localhost ([127.0.0.1]:46597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzT0k-0004T2-Fs for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2019 16:14:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSzl-0004Ru-Rl for emacs-devel@gnu.org; Thu, 28 Feb 2019 16:13:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSzl-0005XK-1c for emacs-devel@gnu.org; Thu, 28 Feb 2019 16:13:33 -0500 Original-Received: from otter.birch.relay.mailchannels.net ([23.83.209.139]:13276) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzSzh-0005Tg-7U for emacs-devel@gnu.org; Thu, 28 Feb 2019 16:13:31 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 92BCC12460F for ; Thu, 28 Feb 2019 21:13:25 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com (unknown [100.96.35.41]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1FFD5123719 for ; Thu, 28 Feb 2019 21:13:25 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Thu, 28 Feb 2019 21:13:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whimsical-Absorbed: 76edf1a911281d7e_1551388405208_3478270772 X-MC-Loop-Signature: 1551388405208:1973279981 X-MC-Ingress-Time: 1551388405208 Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id C7BB27F1B8 for ; Thu, 28 Feb 2019 13:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=Mubabm 1NyNVbwy2NhZYdZHrBC3Y=; b=mTU/nJsWwCBwCVcL9LUVFGUbmkLsoji6j2jqMg I7aka8lZvK69bLlTgkaqDCnqKmWGjPdtbxDINtySC3noY6C3zcyA+mws+zOLPm/2 fdPddvM1XMX0EBzjUojSsvtxiGLE/z04/nFx+a0Fz/PH3yuBkHCukmTpFX0YuNld ZTpCY= Original-Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id D84327F1B1 for ; Thu, 28 Feb 2019 13:13:23 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a27 In-Reply-To: (Robert Pluim's message of "Thu, 28 Feb 2019 17:52:15 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrvdefgdduhedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.139 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233713 Archived-At: > If I=CA=BCve understood correctly, you want to create a frame that cove= rs > the entire workarea of the chosen monitor. Would it not work to > specify the x,y of the top corner plus (fullscreen . maximized) rather > than specifying the width and height explicitly? That will do the > toolbar/titlebar/scrollbar subtractions for you (I haven't tested this)= . I already have this for personal customization in ~/.emacs: (add-hook 'after-make-frame-functions 'toggle-frame-maximized) (advice-add 'make-frame-on-monitor :around (lambda (orig-fun monitor &optional display parameters) (funcall orig-fun monitor display '((undecorated . t)))) '((name . make-frame-on-monitor-undecorated))) But my intention was to implement a general command that would make a new frame according to the physical monitor attributes returned by display-monitor-attributes-list. I have no idea why display-monitor-attributes-list returns workarea that doesn't fit into the created frame on macOS. While testing it without customization in GDK on GNU/Linux, I see that the created frames cover the whole physical monitor, including toolbar/titlebar/scrollbar. Maybe there is still an issue in ns-display-monitor-attributes-list?