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, 05 Jul 2013 09:45:20 +0200 Message-ID: <51D67990.3090800@gmx.at> References: <51C5AA68.4000204@alice.it> <51CCA7DC.8060605@gmx.at> <83fvw2g44j.fsf@gnu.org> <51CE9B05.1090202@gmx.at> <51CFFBED.7090400@gmx.at> <51D02AB0.5070103@gmx.at> <51D5DE14.4090507@alice.it> <51D600D8.90801@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373010390 22175 80.91.229.3 (5 Jul 2013 07:46:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 07:46:30 +0000 (UTC) Cc: Emacs developers , Angelo Graziosi To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 09:46:30 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 1Uv0ip-0005Mg-U2 for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 09:46:28 +0200 Original-Received: from localhost ([::1]:51578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv0ip-0004l6-K6 for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 03:46:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv0im-0004kx-MZ for emacs-devel@gnu.org; Fri, 05 Jul 2013 03:46:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv0il-0000AG-Sh for emacs-devel@gnu.org; Fri, 05 Jul 2013 03:46:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv0il-0000A9-Jx for emacs-devel@gnu.org; Fri, 05 Jul 2013 03:46:23 -0400 Original-Received: from [62.47.47.33] ([62.47.47.33]) by mail.gmx.com (mrgmx103) with ESMTPA (Nemesis) id 0LjZn2-1UO8nT191k-00bazd; Fri, 05 Jul 2013 09:45:23 +0200 In-Reply-To: X-Provags-ID: V03:K0:sFcZJsePa0ttWZoAnTKB/yK85gsQ3dI001odaVsjMrZfFqxSqGp UQ+VidCdg4+ALT7+QUU7lwvgZBp3MY0NRV2ZPj7GJN2fjkwANSbesBDZj+MYy2o5ZQCCRlE QWU3wP2tEQk5KM+W5p1BfurR/ZxZNNpRvPy6FcosIvTxYZgufw1XmXOyN7W5hIb3N0FGXIs jziyGxUctAXBp7iUB9nBA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 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:161562 Archived-At: > I think it's an Emacs limitation that it doesn't really use the window= > manager maximization. Which is strange, because it is available: > > (w32-send-sys-command #xf030) > > et voil=C3=A0. The problem being, I think, that we have no reliable wa= y to > know wheter an Emacs frame is in that state (there's left and top > being -8, but that depends on UI settings). It's part of the WINDOWPLACEMENT structure, IIUC. > I think at this point the only sensible thing to do is to recommend > people wanting to save & restore frames to use > toggle-frame-(maximized|fullscreen) instead of wm maximization. :-( I think we can get it right. In the worst case we have to send a maximze request _after_ we're done with all other parts of window restoration. martin