Source-Changes-HG archive

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

[src/netbsd-1-5]: src/lib/libcurses pullup 1.31 -> 1.32 (approved by releng-1-5)



details:   https://anonhg.NetBSD.org/src/rev/3d3ed309a00d
branches:  netbsd-1-5
changeset: 489594:3d3ed309a00d
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Sep 29 12:33:52 2000 +0000

description:
pullup 1.31 -> 1.32 (approved by releng-1-5)

>do not call wrefresh() uncondintionally from wgetch().  call it only
>when the window was touched (is_wintouched()).
>the previous behavior damaged existing applications, especially when it issues
>lots of subwindow manipulation and mvcur().
>
>it was introduced in 1.23 -> 1.24 or sometime before.

diffstat:

 lib/libcurses/getch.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 5541783b8f69 -r 3d3ed309a00d lib/libcurses/getch.c
--- a/lib/libcurses/getch.c     Fri Sep 29 09:08:21 2000 +0000
+++ b/lib/libcurses/getch.c     Fri Sep 29 12:33:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getch.c,v 1.29.4.2 2000/08/03 11:40:01 itojun Exp $    */
+/*     $NetBSD: getch.c,v 1.29.4.3 2000/09/29 12:33:52 itojun Exp $    */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.29.4.2 2000/08/03 11:40:01 itojun Exp $");
+__RCSID("$NetBSD: getch.c,v 1.29.4.3 2000/09/29 12:33:52 itojun Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -685,7 +685,8 @@
            && __echoit)
                return (ERR);
 
-       wrefresh(win);
+       if (is_wintouched(win))
+               wrefresh(win);
 #ifdef DEBUG
        __CTRACE("wgetch: __echoit = %d, __rawmode = %d, flags = %0.2o\n",
            __echoit, __rawmode, win->flags);



Home | Main Index | Thread Index | Old Index