Fixes NB#125952, modality issue when trying to open a new editor after the "lose...
authorSergio Villar Senin <svillar@igalia.com>
Mon, 13 Jul 2009 09:03:33 +0000 (11:03 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 13 Jul 2009 09:03:33 +0000 (11:03 +0200)
src/hildon2/modest-hildon2-window-mgr.c

index 3922dd6..21f35e8 100644 (file)
@@ -862,7 +862,8 @@ look_for_transient (gconstpointer a,
        child = (GtkWindow *) b;
        win = (GtkWindow *) a;
 
        child = (GtkWindow *) b;
        win = (GtkWindow *) a;
 
-       if (gtk_window_get_transient_for (win) == child)
+       if ((gtk_window_get_transient_for (win) == child) &&
+           GTK_WIDGET_VISIBLE (win))
                return 0;
        else
                return 1;
                return 0;
        else
                return 1;