From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: How to restore the layout? Date: Sun, 30 Jun 2013 09:30:14 -0700 (PDT) Message-ID: <8db9561a-f3c1-49b0-812d-c4d9a6ae3007@default> References: <51C5AA68.4000204@alice.it> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@alice.it> <51CC4CC1.3030202@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CD49CF.1090103@gmx.at> <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipnet.se> <51CD6324.2040504@gmx.at> <834ncifkq9.fsf@gnu.org> <83zjuae19s.fsf@gnu.org> <83r4fmdsw5.fsf@gnu.org> <85k3ldtion.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372609826 31819 80.91.229.3 (30 Jun 2013 16:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 16:30:26 +0000 (UTC) Cc: Stephen Leake , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 30 18:30:25 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UtKW9-0000On-2s for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 18:30:25 +0200 Original-Received: from localhost ([::1]:55415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtKW8-0008Uu-Ki for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 12:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtKW5-0008Tt-98 for emacs-devel@gnu.org; Sun, 30 Jun 2013 12:30:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtKW3-0001iI-VU for emacs-devel@gnu.org; Sun, 30 Jun 2013 12:30:21 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtKW3-0001i0-NO for emacs-devel@gnu.org; Sun, 30 Jun 2013 12:30:19 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5UGNvg1009482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 30 Jun 2013 16:23:57 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5UGUGRL016042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Jun 2013 16:30:16 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5UGUFG1010717; Sun, 30 Jun 2013 16:30:15 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161360 Archived-At: > > Again, dunno whether such an approach helps you. >=20 > I think that's adding complexity to desktop.el that does not really > belongs there. I was not suggesting adding any such code to desktop.el. It was an FYI/FWIW about how I determine available screen space, and a suggestion to consider letting users override whatever available space we calculate. > > It is based on `x-display-pixel-(width|height)'. Whether that > > helps when using multiple monitors etc., I'm not sure. >=20 > Calculating the available area on Windows with multiple monitors is > always going to give trouble, because all "screen space" is > contiguous, yet not all coordinates point to visible space. `x-display-pixel-(width|height)' was all that was available at the time I wrote that code, AFAIK. And I too was not aware of the Emacs 24.4 addition of `display-monitor-attributes-list' and `frame-monitor-attributes'. Sounds like you are now getting some of the info that you need, in any case.