Mercurial > pidgin.yaz
changeset 19347:e159cee53085
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.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 21 Aug 2007 04:37:13 +0000 |
parents | 0762e505818c |
children | f0c4b4fdbd16 |
files | pidgin/plugins/win32/transparency/win2ktrans.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {