diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2016-09-12 18:24:50 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2016-09-14 11:29:32 +0800 |
commit | bc6630bb7dd71cfc3a5ed1f93e2ef56c987acb30 (patch) | |
tree | 2426471bede8bb2d91b1277d3521a87d7e0a3049 /gdk | |
parent | 9a2ce3a485d31a28824fa94258ffa55de69a4a1c (diff) | |
download | gtk+-bc6630bb7dd71cfc3a5ed1f93e2ef56c987acb30.tar.gz |
wayland: Don't pass parent when creating dynamic positioner
When using the dynamic positioner (i.e. positioning from move_to_rect)
we can always rely on having a proper transient-for to position
relative to, so lets drop the ignored parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=771117
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdkwindow-wayland.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index c411da5ffb..4614d48f45 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1873,13 +1873,13 @@ calculate_moved_to_rect_result (GdkWindow *window, } static struct zxdg_positioner_v6 * -create_dynamic_positioner (GdkWindow *window, - GdkWindow *parent) +create_dynamic_positioner (GdkWindow *window) { GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl); GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (gdk_window_get_display (window)); struct zxdg_positioner_v6 *positioner; + GdkWindow *parent; GdkRectangle geometry; enum zxdg_positioner_v6_anchor anchor; enum zxdg_positioner_v6_anchor gravity; @@ -2018,7 +2018,7 @@ gdk_wayland_window_create_xdg_popup (GdkWindow *window, gdk_window_freeze_updates (window); if (impl->position_method == POSITION_METHOD_MOVE_TO_RECT) - positioner = create_dynamic_positioner (window, parent); + positioner = create_dynamic_positioner (window); else positioner = create_simple_positioner (window, parent); |