[ekg2-commit] r4107 - trunk/ekg: trunk/ekg/protocol.c trunk/ekg/themes.c

SVN commit svn w toxygen.net
Pon, 14 Lip 2008, 23:16:51 CEST


Author: wiechu
Date: 2008-07-14 23:16:49 +0200 (Mon, 14 Jul 2008)
New Revision: 4107

Modified:
   trunk/ekg/protocol.c
   trunk/ekg/themes.c
Log:
    fix w->act once again

Modified: trunk/ekg/protocol.c
===================================================================
--- trunk/ekg/protocol.c	2008-07-14 17:35:47 UTC (rev 4106)
+++ trunk/ekg/protocol.c	2008-07-14 21:16:49 UTC (rev 4107)
@@ -697,7 +697,7 @@
 		separate = 2;
 	else if ( (class == EKG_MSGCLASS_CHAT || class == EKG_MSGCLASS_SENT_CHAT) || 
 		  (!(config_make_window & 4) && (class == EKG_MSGCLASS_MESSAGE || class == EKG_MSGCLASS_SENT)) )
-		separate = to_me ? 3 : 1;
+		separate = to_me ? 1 : 3;
 
 	print_window(target, s, separate, class_str, user, timestamp,
 		(is_me ? text+4 : text),

Modified: trunk/ekg/themes.c
===================================================================
--- trunk/ekg/themes.c	2008-07-14 17:35:47 UTC (rev 4106)
+++ trunk/ekg/themes.c	2008-07-14 21:16:49 UTC (rev 4107)
@@ -702,7 +702,7 @@
  * @param separate:
  *		1 - EKG_MSGCLASS_MESSAGE || EKG_MSGCLASS_SENT
  *		2 - EKG_MSGCLASS_LOG || EKG_MSGCLASS_SENT_LOG
- *		3 - msg to us
+ *		3 - msg NOT to us
  *		0 - other
  *
  * @note 	We only check if @a w == NULL, if you send here wrong window_t ptr, everything can happen. don't do it.
@@ -721,9 +721,9 @@
 	/* Change w->act */
 	if (w != window_current && !w->floating && (separate != 2)) {
 		int newact;
-		if (separate == 3)
+		if (separate == 1)
 			newact = 3;	/* msg to us */
-		else if (separate == 1)
+		else if (separate == 3)
 			newact = 2;	/* msg not to us */
 		else
 			newact = 1;	/* junk */



Więcej informacji o liście dyskusyjnej ekg2-commit