[gtk+] wayland: Don't pass transient-for when getting real parent
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Don't pass transient-for when getting real parent
- Date: Wed, 14 Sep 2016 03:49:49 +0000 (UTC)
commit 9a2ce3a485d31a28824fa94258ffa55de69a4a1c
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Sep 12 18:24:14 2016 +0800
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
gdk/wayland/gdkwindow-wayland.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 77fb4a8..c411da5 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1607,11 +1607,13 @@ window_anchor_to_gravity (GdkGravity rect_anchor)
}
static GdkWindow *
-get_real_parent_and_translate (GdkWindow *child,
- GdkWindow *parent,
- gint *x,
- gint *y)
+get_real_parent_and_translate (GdkWindow *window,
+ gint *x,
+ gint *y)
{
+ GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+ GdkWindow *parent = impl->transient_for;
+
while (parent &&
!gdk_window_has_native (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_y = impl->pending_move_to_rect.rect.y;
parent = get_real_parent_and_translate (window,
- impl->transient_for,
&real_anchor_rect_x,
&real_anchor_rect_y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]