wayland: Use effective toplevel as popup parent

When using the set transient-for as a popup parent, fetch the effective
toplevel instead, otherwise we will position against the wrong
coordinate.

https://bugzilla.gnome.org/show_bug.cgi?id=769402
This commit is contained in:
Jonas Ådahl
2016-08-04 14:05:06 +08:00
committed by Matthias Clasen
parent a985e62b25
commit 1f7094a3e5

View File

@@ -1706,7 +1706,10 @@ gdk_wayland_window_map (GdkWindow *window)
&window->x, &window->y, NULL);
}
else
transient_for = get_popup_parent (impl->transient_for);
{
transient_for = gdk_window_get_effective_toplevel (impl->transient_for);
transient_for = get_popup_parent (transient_for);
}
if (!transient_for)
{