[Wayland-bugs] [Bug 774148] Gtk.Popover misplacement in Wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Feb 8 14:50:17 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=774148
Olivier Fourdan <ofourdan at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #344713|reviewed |none
status| |
Attachment #344713|0 |1
is obsolete| |
--- Comment #7 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 345232
--> https://bugzilla.gnome.org/attachment.cgi?id=345232&action=edit
[PATCH] gdkwindow: subsurface in gdk_window_get_effective_parent()
When the GtkWidget hierarchy does not match the GdkWindow hierarchy, the
GtkWidget code may find a common ancestor that cannot be found while
traversing the GdkWindow tree using gdk_window_get_effective_parent().
This happens with for example on Wayland, a GtkPopover has another
GtkPopover as parent, in this case, the GdkWindow parent is the root
window, whereas the GtkWidget parent is the other GtkPopover.
That confuses the gtk_widget_translate_coordinates() logic which will
bail out in this case and won't return the translated coordinates.
Make gdk_window_get_effective_parent() aware of subsurfaces and use the
transient_for which represents the actual parent (whereas the parent
might be pointing to the root window).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170208/9fe48f9f/attachment.html>
More information about the wayland-bugs
mailing list