mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 03:10:07 +00:00
wayland: Don't pass transient-for when getting real parent
It's always derived from transient-for so no need to pass it. https://bugzilla.gnome.org/show_bug.cgi?id=771117
This commit is contained in:
parent
50e33308db
commit
9a2ce3a485
@ -1607,11 +1607,13 @@ window_anchor_to_gravity (GdkGravity rect_anchor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static GdkWindow *
|
static GdkWindow *
|
||||||
get_real_parent_and_translate (GdkWindow *child,
|
get_real_parent_and_translate (GdkWindow *window,
|
||||||
GdkWindow *parent,
|
gint *x,
|
||||||
gint *x,
|
gint *y)
|
||||||
gint *y)
|
|
||||||
{
|
{
|
||||||
|
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||||
|
GdkWindow *parent = impl->transient_for;
|
||||||
|
|
||||||
while (parent &&
|
while (parent &&
|
||||||
!gdk_window_has_native (parent) &&
|
!gdk_window_has_native (parent) &&
|
||||||
gdk_window_get_effective_parent (parent))
|
gdk_window_get_effective_parent (parent))
|
||||||
@ -1893,7 +1895,6 @@ create_dynamic_positioner (GdkWindow *window,
|
|||||||
real_anchor_rect_x = impl->pending_move_to_rect.rect.x;
|
real_anchor_rect_x = impl->pending_move_to_rect.rect.x;
|
||||||
real_anchor_rect_y = impl->pending_move_to_rect.rect.y;
|
real_anchor_rect_y = impl->pending_move_to_rect.rect.y;
|
||||||
parent = get_real_parent_and_translate (window,
|
parent = get_real_parent_and_translate (window,
|
||||||
impl->transient_for,
|
|
||||||
&real_anchor_rect_x,
|
&real_anchor_rect_x,
|
||||||
&real_anchor_rect_y);
|
&real_anchor_rect_y);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user