1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Fixed ">" indicator when tidying windows

This commit is contained in:
James Booth 2013-08-30 00:49:38 +01:00
parent 7f476b3e2c
commit 4ae817cd82
4 changed files with 17 additions and 5 deletions

View File

@ -621,8 +621,8 @@ void
ui_close_current(void)
{
int current_index = wins_get_current_num();
wins_close_current();
status_bar_inactive(current_index);
wins_close_current();
status_bar_active(1);
title_bar_title();
}

View File

@ -129,6 +129,20 @@ status_bar_resize(void)
dirty = TRUE;
}
void
status_bar_set_all_inactive(void)
{
int i = 0;
for (i = 0; i < 12; i++) {
is_active[i] = FALSE;
is_new[i] = FALSE;
_mark_inactive(i);
}
g_hash_table_remove_all(remaining_active);
g_hash_table_remove_all(remaining_new);
}
void
status_bar_inactive(const int win)
{

View File

@ -225,6 +225,7 @@ void status_bar_inactive(const int win);
void status_bar_active(const int win);
void status_bar_new(const int win);
void status_bar_update_time(void);
void status_bar_set_all_inactive(void);
// input window actions
wint_t inp_get_char(char *input, int *size);

View File

@ -332,10 +332,7 @@ wins_tidy(void)
}
if (tidy_required) {
int i = 0;
for (i = 0; i < 12; i++) {
status_bar_inactive(i);
}
status_bar_set_all_inactive();
GHashTable *new_windows = g_hash_table_new_full(g_direct_hash,
g_direct_equal, NULL, (GDestroyNotify)win_free);