From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 14:31:51 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <51C8B2C8.4000803@gmx.at> <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> <51CD5489.10902@gmx.at> <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipne t.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372423639 12100 80.91.229.3 (28 Jun 2013 12:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 12:47:19 +0000 (UTC) Cc: Angelo Graziosi , Emacs developers , martin rudalics , Stefan Monnier , Eli Zaretskii , Stephen Berman , Jambunathan K To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 14:47:18 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 1UsY56-0001b0-FU for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 14:47:16 +0200 Original-Received: from localhost ([::1]:53761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsY55-0004P6-Th for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 08:47:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsY52-0004Nz-IK for emacs-devel@gnu.org; Fri, 28 Jun 2013 08:47:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsXzX-0007RG-Bv for emacs-devel@gnu.org; Fri, 28 Jun 2013 08:41:32 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:51525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsXqE-0003MA-Bo for emacs-devel@gnu.org; Fri, 28 Jun 2013 08:31:54 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id A3FCF9AD8 for ; Fri, 28 Jun 2013 14:31:52 +0200 (CEST) Original-Received: (qmail 3923 invoked by uid 89); 28 Jun 2013 12:31:52 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 28 Jun 2013 12:31:52 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 0B8EC1A0227; Fri, 28 Jun 2013 12:31:52 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 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:161196 Archived-At: 28 jun 2013 kl. 14:00 skrev Juanma Barranquero : > On Fri, Jun 28, 2013 at 12:01 PM, Jan Dj=E4rv = wrote: >=20 >> It is overkill to to that, just make the frames and = maximize/fullscreen them >> as they where when the desktop was saved. It is a mistake to try to = be a >> window manager and force frames to exact positions. >=20 > What you call a mistake, I call the main thing that would make the > save&restore feature worth using for me. I don't want frames restored > if they are not at the same place they were before. This pertains just to maximized/fullscreen/minimized frames. The best = strategy (for X anyway) is to create non-maximized/non-fullscreen frames = where there where saved and let the window manager move them if it so = wishes. =20 Maximized/fullscreen frames should be created with the corresponding = frame parameter, and don't try to first create them where there where in = their un-maximized/un-fullscreen state and then make them = maximized/fullscreen. I don't know if it is different on W32, but = maximized/fullscreen is not about setting some size, it is about setting = a state. The window manager sets the size. So if I saved a maximized = frame on a small monitor, it will be maximized when i restore the = desktop on a larger monitor. The window manager takes care of it, Emacs = does not need to emulate a window manager. Jan D.