Code

Make window switching smother; fix blurring of previous view when switching
authorJonas Fonseca <fonseca@diku.dk>
Fri, 26 May 2006 19:12:43 +0000 (21:12 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Fri, 26 May 2006 19:12:43 +0000 (21:12 +0200)
Don't refresh after a resize, since it causes the previous content to be
shortly displayed. We now simply resize and clear and waits for the first
read to start displaying the new content.

tig.c

diff --git a/tig.c b/tig.c
index 975e7dc9b6a789f67a7a05f3931f1a44a97e3522..36669b165d7c81c3b1db309d0edc80b0520522b2 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -906,7 +906,6 @@ resize_display(void)
                        wresize(view->win, view->height, view->width);
                        mvwin(view->win,   offset, 0);
                        mvwin(view->title, offset + view->height, 0);
-                       wrefresh(view->win);
                }
 
                offset += view->height + 1;
@@ -1344,7 +1343,7 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
        }
 
        if (prev && view != prev) {
-               if (!backgrounded) {
+               if (split && !backgrounded) {
                        /* "Blur" the previous view. */
                        update_view_title(prev);
                }