Bug 630173 - a dockable open from an existing one appears under it

Show the new dock with gtk_widget_show_now(), which waits until it's
mapped, then call gdk_window_raise() explicitly. How sick...
This commit is contained in:
Michael Natterer 2012-05-09 00:20:06 +02:00
parent 1e6d5ee9e4
commit bd3f892f79
1 changed files with 8 additions and 1 deletions

View File

@ -658,7 +658,14 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
}
if (present && GTK_IS_WINDOW (toplevel))
gtk_window_present (GTK_WINDOW (toplevel));
{
/* Work around focus-stealing protection, or whatever makes the
* dock appear below the one where we clicked a button to open
* it. See bug #630173.
*/
gtk_widget_show_now (toplevel);
gdk_window_raise (gtk_widget_get_window (toplevel));
}
return dialog;
}