bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows
Date: Fri, 05 Dec 2008 10:58:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]