Added gui_refresh

Refreshing all windows now done in main loop
This commit is contained in:
James Booth
2012-02-13 01:25:47 +00:00
parent 6f90464619
commit b79e61fd80
3 changed files with 14 additions and 26 deletions

View File

@@ -53,24 +53,14 @@ static void _profanity_main(void)
static void _profanity_event_loop(int *ch, char *cmd, int *size)
{
usleep(1);
// refresh gui
title_bar_refresh();
status_bar_refresh();
// handle XMPP events
gui_refresh();
jabber_process_events();
// deal with special keys
_process_special_keys(ch);
// try for another character on input
inp_poll_char(ch, cmd, size);
}
static void _process_special_keys(int *ch)
{
// change window
if (*ch == KEY_F(1)) {
if (win_is_active(0))
win_switch_to(0);