# HG changeset patch # User Daniel Atallah # Date 1187671033 0 # Node ID e159cee53085986592da37f5a98ea1c8391a3a36 # Parent 0762e505818c3d9c66a2688c837177909ee14824 Don't apply transparency when the window has focus (this was caused by the fix for initially hidden windows not having the transparency on focus stuff working correctly). Fixes #2384. diff -r 0762e505818c -r e159cee53085 pidgin/plugins/win32/transparency/win2ktrans.c --- a/pidgin/plugins/win32/transparency/win2ktrans.c Tue Aug 21 02:36:35 2007 +0000 +++ b/pidgin/plugins/win32/transparency/win2ktrans.c Tue Aug 21 04:37:13 2007 +0000 @@ -396,8 +396,12 @@ && pconv->unseen_state == PIDGIN_UNSEEN_NONE && pidgin_conv_window_get_gtkconv_count(win) == 1) { GtkWidget *window = win->window; + gboolean has_focus; - set_conv_window_trans(NULL, win); + g_object_get(G_OBJECT(window), "has-toplevel-focus", &has_focus, NULL); + + if (!has_focus) + set_conv_window_trans(NULL, win); if (g_signal_handler_find(G_OBJECT(window), G_SIGNAL_MATCH_FUNC, 0, 0, NULL, G_CALLBACK(focus_conv_win_cb), NULL) == 0) {