about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/core.c5
-rw-r--r--src/ui/windows.c1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 9dd72c4e..c97ce67e 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -531,7 +531,7 @@ ui_close_all_wins(void)
     int curr = 0, count = 0;
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
-    for (curr = 1; curr <= 9; curr++) {
+    for (curr = 2; curr <= 10; curr++) {
         if (ui_win_exists(curr)) {
             if (conn_status == JABBER_CONNECTED) {
                 ui_close_connected_win(curr);
@@ -550,7 +550,7 @@ ui_close_read_wins(void)
     int curr = 0, count = 0;
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
-    for (curr = 1; curr <= 9; curr++) {
+    for (curr = 2; curr <= 10; curr++) {
         if (ui_win_exists(curr) && (ui_win_unread(curr) == 0)) {
             if (conn_status == JABBER_CONNECTED) {
                 ui_close_connected_win(curr);
@@ -615,7 +615,6 @@ void
 ui_close_win(int index)
 {
     wins_close_by_num(index);
-    status_bar_inactive(index);
     status_bar_active(1);
     title_bar_title();
 
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 7b463ac1..58e1ec59 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -140,6 +140,7 @@ wins_close_by_num(int i)
             wins_refresh_current();
         }
         g_hash_table_remove(windows, GINT_TO_POINTER(i));
+        status_bar_inactive(i);
     }
 }
 
j5@gmail.com> 2014-06-23 21:05:46 +0100 Added buffer handling. Buffer are initialized, pushed, and freed. No use is made of them so far' href='/danisanti/profani-tty/commit/src/ui/buffer.c?id=6a9e19303eed29d5985d0e8fb00ef48c9d6b25e1'>6a9e1930 ^
945d6559 ^

6a9e1930 ^
945d6559 ^





6a9e1930 ^
945d6559 ^

6a9e1930 ^
945d6559 ^

6a9e1930 ^







945d6559 ^










6a9e1930 ^

945d6559 ^
6a9e1930 ^
945d6559 ^
6a9e1930 ^


































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129