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
This commit is contained in:
parent
9a2ce3a485
commit
bc6630bb7d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user