diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-10-15 00:51:05 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-11-19 03:31:47 +0100 |
commit | b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d (patch) | |
tree | 00a9f8a2b2dc2dbdbdc8b1f3fc06b94fb4599123 /src/sdtui.c | |
parent | b352a0fc8d49536322ffffa3b2d16d135d9a7996 (diff) | |
download | tdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.tar.gz tdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.tar.xz tdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.zip |
Avoid flicker while resizing
Diffstat (limited to 'src/sdtui.c')
-rw-r--r-- | src/sdtui.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sdtui.c b/src/sdtui.c index b09de99..3dbcb03 100644 --- a/src/sdtui.c +++ b/src/sdtui.c @@ -43,6 +43,7 @@ #include "config.h" #include "stardict.h" +#include "utils.h" #define CTRL_KEY(x) ((x) - 'A' + 1) @@ -1186,11 +1187,7 @@ process_winch_input (GIOChannel *source, char c; read (g_io_channel_unix_get_fd (source), &c, 1); - // TODO: look for resizeterm() and use it if available for flicker-free - // resize; endwin() escapes curses mode. - endwin (); - refresh (); - + update_curses_terminal_size (); app_process_resize (app); return TRUE; } |