unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: MS Windows Frame Maximize in .emacs (again)
Date: Thu, 14 Jul 2005 12:33:43 +0200	[thread overview]
Message-ID: <f7ccd24b05071403331e95196b@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0506090132597c168c@mail.gmail.com>

I've been testing Lennart's patch for the maximizing problems on
Windows for about a month with no glitch whatsoever.

Of the two components of Lennart's patch, the first one was decided it
would be better fixed when adding support for fractional heights:

> --- 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)
>                       {

However, this part of the change shouldn't be dependant on that, should it?

> --- 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)
>              {
> 

I mean, we shouldn't be allowing to move a zoomed window. I propose we
install this part (which can reasonably be supposed to introduce no
instability, it's just skipping a MoveWindow call).

-- 
                    /L/e/k/t/u

  parent reply	other threads:[~2005-07-14 10:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-26 19:57 MS Windows Frame Maximize in .emacs (again) David Abrahams
2005-06-06 14:32 ` David Abrahams
2005-06-06 19:47   ` David Abrahams
2005-06-06 20:37     ` Lennart Borgman
2005-06-09  0:56 ` Lennart Borgman
2005-06-09  8:15   ` jasonr
2005-06-09  8:39     ` Juanma Barranquero
2005-06-09  9:01     ` Kim F. Storm
2005-06-09  9:44       ` Juanma Barranquero
2005-06-09 11:47         ` Kim F. Storm
2005-06-09 13:32           ` Lennart Borgman
2005-06-10  0:15           ` Richard Stallman
2005-06-09 12:20         ` jasonr
     [not found]   ` <f7ccd24b0506090132597c168c@mail.gmail.com>
2005-07-14 10:33     ` Juanma Barranquero [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-06-09  8:23 LENNART BORGMAN
2005-06-09  9:30 ` Juanma Barranquero
2005-06-09 10:59   ` David Kastrup
2005-06-09  9:18 LENNART BORGMAN
2005-06-09 12:17 ` jasonr
2005-06-09 12:46   ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b05071403331e95196b@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).