From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: MS Windows Frame Maximize in .emacs (again) Date: Thu, 09 Jun 2005 02:56:24 +0200 Message-ID: <42A793B8.3020609@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118278630 6009 80.91.229.2 (9 Jun 2005 00:57:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 00:57:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 02:57:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgBLY-00053w-Kc for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 02:56:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgBSN-0003mH-IN for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2005 21:03:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgBSE-0003lp-A0 for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:03:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgBSC-0003ku-UO for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:03:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgBSB-0003k4-TL for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:03:27 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DgBNd-0000Wh-Ne for emacs-devel@gnu.org; Wed, 08 Jun 2005 20:58:45 -0400 Original-Received: from [192.168.123.121] (83.249.205.77) by pne-smtpout1-sn1.fre.skanova.net (7.2.059.6) id 429C5421001D7B9D; Thu, 9 Jun 2005 02:58:23 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: David Abrahams In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38397 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38397 David Abrahams wrote: >I have nothing to add to >http://lists.gnu.org/archive/html/emacs-devel/2004-12/msg00364.html >except that it's happening for me, too. > >Ideas, anyone? > > > I think the changes below should make maximized frames behave better on w32. They try to prevent changing the size of a frame that is maximized. This change remove the bug that a maximized frame does not fit the whole screen. It also removes the bug that a maximezed frame can be moved. At least for me there seems to be no problem now (with these patches) to maximize a frame on startup on w32. (But I do not know if these patches actually affected that.) Could someone please try them and check them in? Index: w32fns.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v retrieving revision 1.246 diff -r1.246 w32fns.c 3651,3652c3651,3652 < lppos->cx -= wdiff; < lppos->cy -= hdiff; --- > //lppos->cx -= wdiff; > //lppos->cy -= hdiff; 3656a3657,3658 > lppos->cx -= wdiff; > lppos->cy -= hdiff; C:\emacscvs\emacs\src>cvs diff w32term.c Index: w32term.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/w32term.c,v retrieving revision 1.224 diff -r1.224 w32term.c 3837a3838 > if (!IsZoomed(hwnd)){ 3840a3842 > }