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

From: Stefan Monnier <[email-masked]>
Date: Fri, 05 Dec 2008 10:58:37 -0500

>> 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.

Maybe it's not the right fix, but since it appears to fix the original
problem, we should look into why it fixes the problem.

        Stefan