From: Jonas Fonseca Date: Fri, 26 May 2006 19:12:43 +0000 (+0200) Subject: Make window switching smother; fix blurring of previous view when switching X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b995f0cb21bf274f151f51f3974dabf66f1d354;p=tig.git Make window switching smother; fix blurring of previous view when switching 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. --- diff --git a/tig.c b/tig.c index 975e7dc..36669b1 100644 --- 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); }