From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Sat, 29 Jun 2013 04:47:18 -0400 Message-ID: <85bo6ptiax.fsf@member.fsf.org> References: <51C5AA68.4000204@alice.it> <51C93CDB.2020301@gmx.at> <51C9C790.3020407@gmx.at> <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.2 040504@gmx.at> <51CD788A.6080807@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372495674 16804 80.91.229.3 (29 Jun 2013 08:47:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Jun 2013 08:47:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 29 10:47:50 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 1Usqou-00080y-71 for ged-emacs-devel@m.gmane.org; Sat, 29 Jun 2013 10:47:48 +0200 Original-Received: from localhost ([::1]:33826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usqot-0007Ob-E7 for ged-emacs-devel@m.gmane.org; Sat, 29 Jun 2013 04:47:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usqon-0007OP-DJ for emacs-devel@gnu.org; Sat, 29 Jun 2013 04:47:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Usqom-0007wy-37 for emacs-devel@gnu.org; Sat, 29 Jun 2013 04:47:41 -0400 Original-Received: from vms173001pub.verizon.net ([206.46.173.1]:64941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usqol-0007vx-Ug for emacs-devel@gnu.org; Sat, 29 Jun 2013 04:47:40 -0400 Original-Received: from TAKVER ([unknown] [71.241.247.125]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MP500BLZCEZK190@vms173001.mailsrvcs.net> for emacs-devel@gnu.org; Sat, 29 Jun 2013 03:47:24 -0500 (CDT) In-reply-to: <51CD788A.6080807@gmx.at> (martin rudalics's message of "Fri, 28 Jun 2013 13:50:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.46.173.1 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:161269 Archived-At: martin rudalics writes: >> Yes. So I guess you have to implement a smallish window manager to >> get this right, i.e. handle resolution that differs from the one >> saved, when previous visible frames vould now be invisible, handle >> frames that spanned multiple monitors, but those monitors anre no >> longer available, and so on. This is a hard problem. > > Indeed. In a first step, the desktop changes will mostly address people > who resume a session on one and the same machine. When machines differ, > all sort of things may have to be adapted. I would prefer the restore operation to abort with a message "saved info is for a different display configuration". The next step would be to keep several saved configurations, and present a menu of which one to restore (one for laptop only, one for laptop plus home monitor, one for work monitor). However, it is not easy to detect the monitor setup. On MS windows, laptop + monitor is just one big display, and you can have windows at negative positions (which breaks all kinds of assumptions!). -- -- Stephe