Mercurial > pidgin.yaz
changeset 21040:cb086fef7ca1
Consider buddy list obscured if it is partially obscured in addition to
fully obscured. This will cause a partially obscured buddy list to get
raised when clicking on the docklet rather than hiding it. Fixes #2740.
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Sun, 28 Oct 2007 17:53:14 +0000 |
parents | 5af17c5a4a12 |
children | 094bbbe89d0d |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Oct 28 16:51:48 2007 +0000 +++ b/pidgin/gtkblist.c Sun Oct 28 17:53:14 2007 +0000 @@ -174,9 +174,12 @@ ***************************************************/ static gboolean gtk_blist_visibility_cb(GtkWidget *w, GdkEventVisibility *event, gpointer data) { - if (event->state == GDK_VISIBILITY_FULLY_OBSCURED) + if (event->state == GDK_VISIBILITY_FULLY_OBSCURED || + event->state == GDK_VISIBILITY_PARTIAL) { + gtk_blist_obscured = TRUE; - else if (gtk_blist_obscured) { + + } else if (gtk_blist_obscured) { gtk_blist_obscured = FALSE; pidgin_blist_refresh_timer(purple_get_blist()); }