[gtk+] wayland: Don't pass parent when creating dynamic positioner
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Don't pass parent when creating dynamic positioner
- Date: Wed, 14 Sep 2016 03:49:54 +0000 (UTC)
commit bc6630bb7dd71cfc3a5ed1f93e2ef56c987acb30
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Sep 12 18:24:50 2016 +0800
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
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 c411da5..4614d48 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]