From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 16:03:34 +0200 Message-ID: <51CD97B6.7050809@gmx.at> 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> <51CD5489.10902@gmx.at> <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipne t.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372428263 32687 80.91.229.3 (28 Jun 2013 14:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 14:04:23 +0000 (UTC) Cc: Angelo Graziosi , Juanma Barranquero , Emacs developers , Stefan Monnier , Eli Zaretskii , Stephen Berman , Jambunathan K To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 16:04:23 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 1UsZHj-0003Jb-JY for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 16:04:23 +0200 Original-Received: from localhost ([::1]:58030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZHj-0000BD-74 for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 10:04:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZH2-0007Zf-RB for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsZH0-0004M9-GB for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:03:40 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:50211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZH0-0004Ll-6Z for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:03:38 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.28]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MDBbe-1V2ULt1I44-00GWFu for ; Fri, 28 Jun 2013 16:03:37 +0200 Original-Received: (qmail invoked by alias); 28 Jun 2013 14:03:37 -0000 Original-Received: from 62-47-58-248.adsl.highway.telekom.at (EHLO [62.47.58.248]) [62.47.58.248] by mail.gmx.net (mp028) with SMTP; 28 Jun 2013 16:03:37 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18hGq4trEkhDr5V1tncHVKsg64giFAPeFVId5DDUR sQbJkO6X3viVZ3 In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 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:161208 Archived-At: > 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. Let me try to recapitulate: The problem is what to do when saving and restoring a maximized frame. We can't get the location/size it had before maximizing it easily, so Juanma's proposal goes as follows. (1) Create the frame _ignoring_ the saved size/location related frame parameters. (2) Ask the window manager to maximize the frame. When the user now demaximizes the frame, it will appear at its default location with a default size. Does this match what you stated above? martin