Don't call touchwin in tui_gen_win_info::refresh_window
authorTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 22:11:40 +0000 (16:11 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Aug 2019 18:57:06 +0000 (12:57 -0600)
The call to touchwin in tui_gen_win_info::refresh_window was an
artifact of some earlier refactorings.  Testing shows it isn't needed
any more -- I believe it was only ever needed for the data item window
display problem; but that's been solved more locally.

gdb/ChangeLog
2019-08-30  Tom Tromey  <tom@tromey.com>

* tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
call touchwin.

gdb/ChangeLog
gdb/tui/tui-wingeneral.c

index 9c8299b..4f20a78 100644 (file)
@@ -1,5 +1,10 @@
 2019-08-30  Tom Tromey  <tom@tromey.com>
 
+       * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
+       call touchwin.
+
+2019-08-30  Tom Tromey  <tom@tromey.com>
+
        * tui/tui-wingeneral.c (box_win): Assume win_info and
        win_info->handle cannot be NULL.
 
index 01f288b..f900eab 100644 (file)
@@ -38,10 +38,7 @@ void
 tui_gen_win_info::refresh_window ()
 {
   if (handle != NULL)
-    {
-      touchwin (handle);
-      wrefresh (handle);
-    }
+    wrefresh (handle);
 }
 
 /* Function to delete the curses window, checking for NULL.  */