<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Wayland: menu does not resize after disabling an action"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772505#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Wayland: menu does not resize after disabling an action"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772505">bug 772505</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>(In reply to Ernestas Kulik from <a href="show_bug.cgi?id=772505#c14">comment #14</a>)
<span class="quote">> [...]
> However, there haven’t really been reports of this up until that switch from
> the deprecated API, hence my finger pointing.</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>