about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-16 18:58:04 +0000
committerJames Booth <boothj5@gmail.com>2014-01-16 18:58:04 +0000
commit7c7af7b25f993a3f50a6539a82a45f3b5885cc9e (patch)
tree86118b099796b99ace477380c16c95dc9c6b8fb1
parent95b5d141c365372ebdbc5ca3266fc9859e21aa30 (diff)
downloadprofani-tty-7c7af7b25f993a3f50a6539a82a45f3b5885cc9e.tar.gz
Always erase and refresh titlebar when drawing
-rw-r--r--src/ui/titlebar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index 6f056659..68ca623d 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -62,6 +62,7 @@ _title_bar_console(void)
         free(current_title);
     current_title = strdup("Profanity. Type /help for help information.");
 
+    werase(win);
     _title_bar_draw_title();
     _title_bar_draw_presence();
     wrefresh(win);
@@ -75,6 +76,7 @@ _title_bar_resize(void)
 
     wresize(win, 1, cols);
     wbkgd(win, COLOUR_TITLE_TEXT);
+
     werase(win);
     _title_bar_draw_title();
     _title_bar_draw_presence();
@@ -115,8 +117,12 @@ static void
 _title_bar_set_presence(contact_presence_t presence)
 {
     current_presence = presence;
+
+    werase(win);
     _title_bar_draw_title();
     _title_bar_draw_presence();
+    wrefresh(win);
+    inp_put_back();
 }
 
 static void
@@ -173,6 +179,8 @@ _title_bar_draw(void)
     werase(win);
     _title_bar_draw_title();
     _title_bar_draw_presence();
+    wrefresh(win);
+    inp_put_back();
 }
 
 static void