mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 00:26:21 +00:00
Added gui_refresh
Refreshing all windows now done in main loop
This commit is contained in:
12
profanity.c
12
profanity.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user