bug-ncurses
[Top][All Lists]
Advanced

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

Re: Moving subwindows with NCURSES_OPAQUE


From: Thomas Dickey
Subject: Re: Moving subwindows with NCURSES_OPAQUE
Date: Sat, 19 Dec 2009 16:56:39 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Dec 15, 2009 at 05:57:52PM +0100, Katarina Machalkova wrote:
>         ret = mvderwin( sub->w, begin_y, begin_x );
>       ...
> I didn't write the code so I don't quite know why it is written the way it 
> is. 
> Could very well be in order to workaround a bug (discussed in this ML ~2 
> years 
> ago) where _begx and _begy of subwindows are not updated if the parent window 
> is moved to the new location.

The discussion before was mostly regarding mvwin.

        http://lists.gnu.org/archive/html/bug-ncurses/2006-02/msg00007.html

There was some comment about clarifying subwin versus derwin,
but I don't see that it touched this detail.  I didn't notice
it when I made test/movewindow.c - probably because it's a
special case that doesn't stop most calls from moving the derwin.

The check in mvderwin is very old (I see it first in June 1995).  and seems to
"only" prevent moving a derwin when its origin and the parent's coincide.

I'll remove that check...

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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