From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 13:22:11 +0300 Message-ID: <83d2r6fsbw.fsf@gnu.org> 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> Reply-To: Eli Zaretskii 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 1372414943 14176 80.91.229.3 (28 Jun 2013 10:22:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 10:22:23 +0000 (UTC) Cc: angelo.graziosi@alice.it, lekktu@gmail.com, emacs-devel@gnu.org, rudalics@gmx.at, monnier@iro.umontreal.ca, stephen.berman@gmx.net, kjambunathan@gmail.com To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 12:22:21 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 1UsVor-0001CM-En for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 12:22:21 +0200 Original-Received: from localhost ([::1]:60665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsVor-0004dp-9I for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 06:22:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsVon-0004dk-LM for emacs-devel@gnu.org; Fri, 28 Jun 2013 06:22:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsVol-0001TX-Q2 for emacs-devel@gnu.org; Fri, 28 Jun 2013 06:22:17 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsVol-0001TQ-H3 for emacs-devel@gnu.org; Fri, 28 Jun 2013 06:22:15 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MP300I00LRGBJ00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 28 Jun 2013 13:22:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP300IZEM515Y50@a-mtaout22.012.net.il>; Fri, 28 Jun 2013 13:22:13 +0300 (IDT) Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. In-reply-to: <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipnet.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:161182 Archived-At: > From: Jan Dj=E4rv > Date: Fri, 28 Jun 2013 12:01:30 +0200 > Cc: Angelo Graziosi , > Juanma Barranquero , > Emacs developers , > Stefan Monnier , > Eli Zaretskii , > Stephen Berman , > Jambunathan K >=20 > > So this means that, as stated earlier, we'd have to remember the > > pre-maximize/minimize coordinates ourselves in the frame structur= e and > > update them whenever we minimize/maximize a frame. > >=20 >=20 > It is overkill to to that, just make the frames and maximize/fullsc= reen 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. FWIW, I agree. Maximizing a frame is just one mouse click away, so going to great length just to restore that is not a good idea, especially, as Jan points out, it will not be 100% correct anyway. Just make sure we re-create all those frames, and if they need to be resized or moved, be it by the window manager or manually, so be it. It will already be a great improvement from what we had before, whereby users would have manually recreate every frame.