Mercurial > pidgin
changeset 16264:47907d031291
Don't flash the conv. window if it is in the foreground.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 19 Apr 2007 22:28:18 +0000 |
parents | 7891ff4c8e91 |
children | c4ce8368eca8 |
files | pidgin/win32/gtkwin32dep.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/win32/gtkwin32dep.c Thu Apr 19 21:14:29 2007 +0000 +++ b/pidgin/win32/gtkwin32dep.c Thu Apr 19 22:28:18 2007 +0000 @@ -267,7 +267,7 @@ g_return_if_fail(GDK_WINDOW_TYPE(gdkwin) != GDK_WINDOW_CHILD); if(GDK_WINDOW_DESTROYED(gdkwin)) - return; + return; if(MyFlashWindowEx) { FLASHWINFO info; @@ -308,6 +308,10 @@ } window = GTK_WINDOW(win->window); + /* Don't flash if the window is in the foreground */ + if (GetForegroundWindow() == GDK_WINDOW_HWND(GTK_WIDGET(window)->window)) + return; + winpidgin_window_flash(window, TRUE); /* Stop flashing when window receives focus */ g_signal_connect(G_OBJECT(window), "focus-in-event",