# HG changeset patch # User Luke Schierer # Date 1129567330 0 # Node ID c1906dc6257cf1c71d60afc4e739b1729778df51 # Parent 5ec3bd74a3b3b6141095e76ed36dfb78810bc9b7 [gaim-migrate @ 13970] "This patch fixes the tab-color change prob (hopefully this is the last one in the series). Bleeter also thinks I have nailed it this time." -- Sadrul Habib Chowdhury This also seems to fix a case of it I was having this morning. committer: Tailor Script diff -r 5ec3bd74a3b3 -r c1906dc6257c src/gtkconv.c --- a/src/gtkconv.c Mon Oct 17 15:34:19 2005 +0000 +++ b/src/gtkconv.c Mon Oct 17 16:42:10 2005 +0000 @@ -4527,7 +4527,13 @@ g_object_get(G_OBJECT(win->window), "has-toplevel-focus", &has_focus, NULL); - return has_focus; + if (has_focus) + { + GaimConversation *c = gaim_gtk_conv_window_get_active_conversation(win); + if (GAIM_GTK_CONVERSATION(c) == gtkconv) + return TRUE; + } + return FALSE; } static gboolean