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.bugs Subject: bug#34680: Display monitor frames not warmed up Date: Thu, 28 Feb 2019 23:09:05 +0200 Organization: LINKOV.NET Message-ID: <87y35zfwni.fsf@mail.linkov.net> References: <875zt5ueue.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="71160"; 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: 34680@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 28 22:14:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gzT0T-000ILT-S2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Feb 2019 22:14:18 +0100 Original-Received: from localhost ([127.0.0.1]:46601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzT0S-0004s6-R6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Feb 2019 16:14:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzT0G-0004nk-1C for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 16:14:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzT0F-0005st-1G for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 16:14:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzT0E-0005sc-RZ for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 16:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gzT0E-0000aV-Lw for bug-gnu-emacs@gnu.org; Thu, 28 Feb 2019 16:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Feb 2019 21:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34680 X-GNU-PR-Package: emacs Original-Received: via spool by 34680-submit@debbugs.gnu.org id=B34680.15513884302225 (code B ref 34680); Thu, 28 Feb 2019 21:14:02 +0000 Original-Received: (at 34680) by debbugs.gnu.org; 28 Feb 2019 21:13:50 +0000 Original-Received: from localhost ([127.0.0.1]:55582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzT02-0000Zo-7m for submit@debbugs.gnu.org; Thu, 28 Feb 2019 16:13:50 -0500 Original-Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:37877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzSzz-0000Ze-Q9 for 34680@debbugs.gnu.org; Thu, 28 Feb 2019 16:13:48 -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 942F7123353 for <34680@debbugs.gnu.org>; Thu, 28 Feb 2019 21:13:46 +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 4C897124C5C for <34680@debbugs.gnu.org>; Thu, 28 Feb 2019 21:13:46 +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:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Wipe-Vacuous: 144d1506531051b7_1551388426403_1478706123 X-MC-Loop-Signature: 1551388426403:883566437 X-MC-Ingress-Time: 1551388426402 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 5A49A7F1BE for <34680@debbugs.gnu.org>; Thu, 28 Feb 2019 13:13:45 -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=Pdy6q/ qnxgUh3ihFzpb7uXsVLgE=; b=uJHBC61UP9iJNEE227KDnc1sO+FmLuOE6azVTD K3JuY2KKRcM+5E9qgoqHIMI4WMSyrOg8TpvGgWNDHvVVLf3ZCHesy0/V9EPItxAJ 2cxv/qu/B1s4COvupXE9HloWy4EbPVEksXk1bYs37XCwQZz5egRPu1BZwKmPP+4e VFGms= 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 509207F1B5 for <34680@debbugs.gnu.org>; Thu, 28 Feb 2019 13:13:42 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a27 In-Reply-To: <875zt5ueue.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 27 Feb 2019 23:02:09 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrvdefgdduhedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefgeeikedtseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepvd 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: 209.51.188.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:155910 Archived-At: > I guess calling the function =E2=80=98message=E2=80=99 before calling > =E2=80=98display-monitor-attributes-list=E2=80=99 performs some redispl= ay that adds > the frame to the list of frames in =E2=80=98display-monitor-attributes-= list=E2=80=99. It also fixes the issue when using any of the following =E2=80=98redisplay=E2=80=99, =E2=80=98redraw-display=E2=80=99, =E2=80=98r= edraw-frame=E2=80=99, or just =E2=80=98display-monitor-attributes-list=E2=80=99 before calling =E2=80=98frame-monitor-attributes=E2=80=99 for the first time. Just calling =E2=80=98display-monitor-attributes-list=E2=80=99 somehow =E2= =80=9Cregisters=E2=80=9D the frame in the list of frames, so the next call of =E2=80=98display-monitor= -attributes-list=E2=80=99 returns the attribute =E2=80=98frames=E2=80=99 containing the frame. This is not a real patch, it only demonstrates what changes can fix this issue: diff --git a/lisp/frameset.el b/lisp/frameset.el index ac034ec82a..18fed46e97 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el @@ -879,7 +879,11 @@ frameset-move-onscreen When forced onscreen, frames wider than the monitor's workarea are conve= rted to fullwidth, and frames taller than the workarea are converted to fullh= eight. NOTE: This only works for non-iconified frames." + ;; (redisplay) + ;; (redraw-display) + ;; (redraw-frame) + (display-monitor-attributes-list frame) (pcase-let* ((`(,left ,top ,width ,height) (cl-cdadr (frame-monitor-at= tributes frame))) (right (+ left width -1)) (bottom (+ top height -1)) (fr-left (frameset-compute-pos (frame-parameter frame 'left) lef= t right))