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: Sat, 06 Jul 2013 12:44:23 +0200 Message-ID: <51D7F507.4090405@gmx.at> References: <51C5AA68.4000204@alice.it> <83fvw2g44j.fsf@gnu.org> <51CE9B05.1090202@gmx.at> <51CFFBED.7090400@gmx.at> <51D02AB0.5070103@gmx.at> <51D5DE14.4090507@alice.it> <51D600D8.90801@alice.it> <51D67985.7010806@gmx.at> <51D69AF8.2050606@alice.it> <51D6C2FA.7040708@gmx.at> <51D6CD1C.5050504@alice.it> <51D6DB49.7020005@gmx.at> <831u7czx1i.fsf@gnu.org> <51D72CC9.9040704@alice.it> <51D7D9B1.8080102@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373107486 15498 80.91.229.3 (6 Jul 2013 10:44:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 10:44:46 +0000 (UTC) Cc: Eli Zaretskii , Angelo Graziosi , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 06 12:44:46 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 1UvPyu-0001CL-2y for ged-emacs-devel@m.gmane.org; Sat, 06 Jul 2013 12:44:44 +0200 Original-Received: from localhost ([::1]:57786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvPyt-00059S-Ok for ged-emacs-devel@m.gmane.org; Sat, 06 Jul 2013 06:44:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvPyh-0004sF-LQ for emacs-devel@gnu.org; Sat, 06 Jul 2013 06:44:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvPyg-0005jq-DT for emacs-devel@gnu.org; Sat, 06 Jul 2013 06:44:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvPye-0005j9-VB; Sat, 06 Jul 2013 06:44:29 -0400 Original-Received: from [62.47.50.1] ([62.47.50.1]) by mail.gmx.com (mrgmx003) with ESMTPA (Nemesis) id 0LvEZe-1UCdKL2axO-010Njs; Sat, 06 Jul 2013 12:44:28 +0200 In-Reply-To: X-Provags-ID: V03:K0:Z4inhh0xMPfLDs+1PCucPh3BQvZVTkxYN1xkD46Z4QBtzdVnbL/ LcehMPyIw7rNDIZGcB53l806XyvHEHhjGzd8LCFejO2siGqM+5An06qn/h2Tp8TJovjNq2c kyGBhYFMlARPgcdGhLct+ZDWQBfZG1422AD6WU+zsGv6NCcLrK+d0KkNUUaQWkhB2KXu7rS 5f6qdDoE/cOByqRB8a2Eg== 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:161643 Archived-At: > Programmatically, with w32-send-sys-command. OK. If in w32term.c I simply replace this chunk case SIZE_MAXIMIZED: case SIZE_RESTORED: { bool iconified = FRAME_ICONIFIED_P (f); SET_FRAME_VISIBLE (f, 1); SET_FRAME_ICONIFIED (f, 0); /* wait_reading_process_output will notice this and update the frame's display structures. */ SET_FRAME_GARBAGED (f); if (iconified) { int x, y; /* Reset top and left positions of the Window here since Windows sends a WM_MOVE message BEFORE telling us the Window is minimized when the Window is iconified, with 3000,3000 as the co-ords. */ x_real_positions (f, &x, &y); f->left_pos = x; f->top_pos = y; inev.kind = DEICONIFY_EVENT; XSETFRAME (inev.frame_or_window, f); } else if (! NILP (Vframe_list) && ! NILP (XCDR (Vframe_list))) /* Force a redisplay sooner or later to update the frame titles in case this is the second frame. */ record_asynch_buffer_change (); } break; with case SIZE_MAXIMIZED: { bool iconified = FRAME_ICONIFIED_P (f); SET_FRAME_VISIBLE (f, 1); SET_FRAME_ICONIFIED (f, 0); /* wait_reading_process_output will notice this and update the frame's display structures. */ SET_FRAME_GARBAGED (f); if (iconified) { int x, y; /* Reset top and left positions of the Window here since Windows sends a WM_MOVE message BEFORE telling us the Window is minimized when the Window is iconified, with 3000,3000 as the co-ords. */ x_real_positions (f, &x, &y); f->left_pos = x; f->top_pos = y; inev.kind = DEICONIFY_EVENT; XSETFRAME (inev.frame_or_window, f); } else if (! NILP (Vframe_list) && ! NILP (XCDR (Vframe_list))) /* Force a redisplay sooner or later to update the frame titles in case this is the second frame. */ record_asynch_buffer_change (); } store_frame_param (f, Qfullscreen, Qmaximized); break; case SIZE_RESTORED: { bool iconified = FRAME_ICONIFIED_P (f); SET_FRAME_VISIBLE (f, 1); SET_FRAME_ICONIFIED (f, 0); /* wait_reading_process_output will notice this and update the frame's display structures. */ SET_FRAME_GARBAGED (f); if (iconified) { int x, y; /* Reset top and left positions of the Window here since Windows sends a WM_MOVE message BEFORE telling us the Window is minimized when the Window is iconified, with 3000,3000 as the co-ords. */ x_real_positions (f, &x, &y); f->left_pos = x; f->top_pos = y; inev.kind = DEICONIFY_EVENT; XSETFRAME (inev.frame_or_window, f); } else if (! NILP (Vframe_list) && ! NILP (XCDR (Vframe_list))) /* Force a redisplay sooner or later to update the frame titles in case this is the second frame. */ record_asynch_buffer_change (); } store_frame_param (f, Qfullscreen, Qnil); break; the fullscreen parameter gets set to 'maximized. Then we could try to restore the state in `desktop-read' via `w32-send-sys-command'. But obviously that function should be then also called when changing the fullscreen frame parameter ... martin