Subject: Re: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows

From: Eli Zaretskii <[email-masked]>
Date: Fri, 05 Dec 2008 08:20:04 +0200

> Date: Fri, 05 Dec 2008 00:24:40 +0100
> From: grischka <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
>      if (XINT (lines) != FRAME_LINES (f))
>         x_set_window_size (f, 1, FRAME_COLS (f), XINT (lines));
> 
> Basically if the window has 20 lines on enter-freeze, then our
> thing wouldn't even start, because between "sleep-for" and
> "set-frame-height" there is nothing to read the WM_SIZE messages
> from the mouse-dragging.
> 
> Works for me if I disable this line:
>      // if (XINT (lines) ...
> 
> It is a natural problem which happens only too often with
> such "micro-optimizations".

This is not a "micro-optimization".  Emacs deliberately avoids
unnecessary calls to display routines, because frequent redisplay that
doesn't really change anything causes flickering that is quite
annoying.  Therefore, your "solution" is wrong.