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: Fri, 28 Jun 2013 06:29:01 -0700 (PDT) Message-ID: <769b6fef-6b7b-4d02-a736-ee7347eb40b4@default> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372426178 8836 80.91.229.3 (28 Jun 2013 13:29:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 13:29:38 +0000 (UTC) Cc: Angelo Graziosi , Juanma Barranquero , Emacs developers , Stefan Monnier , Eli Zaretskii , Stephen Berman , Jambunathan K To: martin rudalics , =?iso-8859-1?B?SmFuIERq5HJ2?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 15:29:38 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 1UsYk6-0005bB-Fr for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 15:29:38 +0200 Original-Received: from localhost ([::1]:33392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYk6-00014H-3B for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 09:29:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYjr-0000sp-LH for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:29:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsYjl-0008Mc-7t for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:29:23 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsYje-0008Jg-UA; Fri, 28 Jun 2013 09:29:11 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5SDMiMR030610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Jun 2013 13:22:45 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5SDT2Ma016165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Jun 2013 13:29:03 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5SDT2es016145; Fri, 28 Jun 2013 13:29:02 GMT In-Reply-To: <51CD5489.10902@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:161203 Archived-At: > > Strictly speaking they are not part of the current state, but of some > > previous state. X does not differ between maximized, fullscreen or > > normal windows, they are all just windows. The window manager makes > > that distinction, and probably holds that data, but it is private and > > unacessable. >=20 > So this means that, as stated earlier, we'd have to remember the > pre-maximize/minimize coordinates ourselves in the frame structure and > update them whenever we minimize/maximize a frame. FWIW, that is what I do in frame-cmds.el. The frame maximization there is not a real maximization (it just fills the available screen, keeping borders, title etc.). But it does record the current parameters before doing that, so toggling it restores the original size, position, etc. Of course, such recording is done only by the (my) Emacs maximize-frame function; it is not done if the frame is maximized in another way,=20 outside Emacs. But yes, it would be good to be able to capture the window mgr info for restoring. http://www.emacswiki.org/emacs-en/download/frame-cmds.el