mirror of https://github.com/GNOME/gimp.git
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:
parent
1e6d5ee9e4
commit
bd3f892f79
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue