[Wayland-bugs] [Bug 772505] Wayland: menu does not resize after disabling an action
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Fri Nov 25 10:07:09 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=772505
--- Comment #17 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 340744
--> https://bugzilla.gnome.org/attachment.cgi?id=340744&action=edit
Simple reproducer
(In reply to Ernestas Kulik from comment #14)
> Yes, you’re right. I’ve only now started noticing that there’s a race
> condition [...]
You're spot on here, it *is* as race condition as demonstrated by this simple
reproducer.
For this to happen, you need to schedule an update of the content immediately
*after* showing the menu (showing the menu means mapping the window which, for
an xdg_popup under Wayland, means creating the xdg_positionner with the initial
given size).
Scheduling the menu content update synchronously or much later (with a larger
timeout) would avoid the the race condition.
--
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/20161125/79450a3a/attachment.html>
More information about the wayland-bugs
mailing list