---
src/itrafmon.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/itrafmon.c b/src/itrafmon.c
index f19eb61..09431de 100644
--- a/src/itrafmon.c
+++ b/src/itrafmon.c
@@ -535,11 +535,12 @@ static int checkrvnamed(void)
return 1;
}
-static void ipmon_process_key(int ch, int curwin, struct tcptable *table, struct
othptable *othptbl)
+static void ipmon_process_key(int ch, int *curwin_ptr, struct tcptable *table, struct
othptable *othptbl)
{
static int keymode = 0;
static WINDOW *sortwin;
static PANEL *sortpanel;
+ int curwin = *curwin_ptr;
if (keymode == 0) {
switch (ch) {
@@ -604,6 +605,7 @@ static void ipmon_process_key(int ch, int curwin, struct tcptable
*table, struct
case 'W':
case 9:
curwin = !curwin;
+ *curwin_ptr = curwin;
markactive(curwin, table->borderwin,
othptbl->borderwin);
uniq_help(curwin);
@@ -1012,7 +1014,7 @@ void ipmon(time_t facilitytime, char *ifptr)
}
if (ch != ERR)
- ipmon_process_key(ch, curwin, &table, &othptbl);
+ ipmon_process_key(ch, &curwin, &table, &othptbl);
if (pkt.pkt_len > 0) {
total_pkts++;
--
1.7.10.4