[Wayland-bugs] [Bug 759299] wayland: possible infinite loop in gdkwindow-wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue Dec 15 07:48:47 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=759299
--- Comment #11 from Olivier Fourdan <ofourdan at redhat.com> ---
I reckon you need to set the transient_for first to walk up the tree and detect
all possibilities.
Consider this case, two valid and distinct transient trees (where "->" means
"is transient for"):
[ A ] -> [ B ] -> [ C ]
And
[ D ] -> [ E ] -> [ A ]
Now the program tries to set [ C ] -> [ D ] (ie C becomes transient for D)
If you start walking up the tree starting from C, you won't hit D in the first
tree, neither you will hit C walking up the second tree starting from D, and
yet, if C becomes transient for D, you'll have a loop:
[ A ] -> [ B ] -> [ C ] -> [ D ] -> [ E ] -> [ A ]
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20151215/2badea37/attachment.html>
More information about the wayland-bugs
mailing list