mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed ">" indicator when tidying windows
This commit is contained in:
parent
7f476b3e2c
commit
4ae817cd82
@ -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();
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user