Commit bc6630bb authored by Jonas Ådahl's avatar Jonas Ådahl
Browse files

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.
parent 9a2ce3a4
......@@ -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);
positioner = create_simple_positioner (window, parent);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment