[Wayland-bugs] [Bug 772505] Wayland: menu does not resize after disabling an action

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 24 16:23:56 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772505

--- Comment #15 from Olivier Fourdan <ofourdan at redhat.com> ---
(In reply to Ernestas Kulik from comment #14)
> [...]
> However, there haven’t really been reports of this up until that switch from
> the deprecated API, hence my finger pointing.

No worries, I'm mostly thinking out loud, in case it rings a bell with others
:)

Anyway, Looking at gtk_menu_realize(), we can see that the
gtk_widget_get_allocation() is wrong on both X11 and Wayland backend, it's too
large initally.

Event though a later gtk_menu_size_allocate() is supposed to make it right, on
Wayland it's the size set in create_dynamic_positioner() (as we are using
xdg_posiionner now for this) that takes precedence, i.e. the wrong one.

That explains why the bug shows on Wayland and not on X11.

-- 
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/20161124/2b280806/attachment.html>


More information about the wayland-bugs mailing list