summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-08 23:56:03 -0300
committerTingPing <tngpng@gmail.com>2013-05-08 23:56:03 -0300
commit28fe051aa5a01278d0752cefcdc8dbf67e0248fd (patch)
treef748fe3e9079d12b23708bf8d722cb4d1645bcc9 /src/fe-gtk/maingui.c
parentdf31e239a90e210af087a44db3a4abd401622008 (diff)
Fix server tab changing color when active
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index edc47fce..0009198e 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -243,7 +243,8 @@ fe_set_tab_color (struct session *sess, int col)
 			chan_set_color (sess->res->tab, newdata_list);
 
 			if (chan_is_collapsed (sess->res->tab)
-				&& !(server_sess->msg_said || server_sess->nick_said))
+				&& !(server_sess->msg_said || server_sess->nick_said)
+				&& !(server_sess == current_tab))
 			{
 				server_sess->new_data = TRUE;
 				server_sess->msg_said = FALSE;
@@ -258,7 +259,9 @@ fe_set_tab_color (struct session *sess, int col)
 			sess->nick_said = FALSE;
 			chan_set_color (sess->res->tab, newmsg_list);
 			
-			if (chan_is_collapsed (sess->res->tab) && !server_sess->nick_said)
+			if (chan_is_collapsed (sess->res->tab) 
+				&& !server_sess->nick_said
+				&& !(server_sess == current_tab))
 			{
 				server_sess->new_data = FALSE;
 				server_sess->msg_said = TRUE;
@@ -273,7 +276,7 @@ fe_set_tab_color (struct session *sess, int col)
 			sess->nick_said = TRUE;
 			chan_set_color (sess->res->tab, nickseen_list);
 
-			if (chan_is_collapsed (sess->res->tab))
+			if (chan_is_collapsed (sess->res->tab) && !(server_sess == current_tab))
 			{
 				server_sess->new_data = FALSE;
 				server_sess->msg_said = FALSE;