> 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.
I'm trying the patch attached below, which is a unidiff of yours (I've removed a superfluous pair of parenthesis and commented out lines). It seems to work OK, and now finally the MinGW build maximizes correctly (till now it left an ugly thin border on the right and bottom, at least on Windows XP). > Could someone please try them and check them in? Let's see if the patch works for other NTEmacs people. Could you please write a ChangeLog entry? Thanks, /L/e/k/t/u Index: src/w32fns.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v retrieving revision 1.246 diff -u -2 -r1.246 w32fns.c --- src/w32fns.c 3 Jan 2005 22:53:30 -0000 1.246 +++ src/w32fns.c 9 Jun 2005 08:17:43 -0000 @@ -3649,10 +3649,9 @@ and Y positions as well. */ - lppos->cx -= wdiff; - lppos->cy -= hdiff; - if (wp.showCmd != SW_SHOWMAXIMIZED && (lppos->flags & SWP_NOMOVE) == 0) { + lppos->cx -= wdiff; + lppos->cy -= hdiff; if (lppos->x != wr.left || lppos->y != wr.top) { Index: src/w32term.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/w32term.c,v retrieving revision 1.224 diff -u -2 -r1.224 w32term.c --- src/w32term.c 26 Mar 2005 00:19:53 -0000 1.224 +++ src/w32term.c 9 Jun 2005 08:20:38 -0000 @@ -3836,7 +3836,8 @@ area of the parent window now exposed will be refreshed. */ my_show_window (f, hwnd, SW_HIDE); - MoveWindow (hwnd, sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, - top, sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, - max (height, 1), TRUE); + if (!IsZoomed (hwnd)) + MoveWindow (hwnd, sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, + top, sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, + max (height, 1), TRUE); if (pfnSetScrollInfo) { _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel