After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695120 - GtkMenu and GdkWindow sizes can get out of sync
GtkMenu and GdkWindow sizes can get out of sync
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-04 12:42 UTC by Thomas Wood
Modified: 2013-05-13 01:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove gtk_widget_size_allocate from gtk_menu_popup_for_device (1.41 KB, patch)
2013-03-05 15:27 UTC, Thomas Wood
accepted-commit_now Details | Review

Description Thomas Wood 2013-03-04 12:42:37 UTC
GtkMenu calls gtk_widget_size_allocate on its GtkWindow during gtk_menu_popup_for_device if the menu has not been realised. This can cause the allocation of the GtkWindow and the size of the GdkWindow to become out of sync because a top level GtkWindow does not attempt to re-size the GdkWindow when its allocation is set.
Comment 1 Thomas Wood 2013-03-05 15:27:15 UTC
Created attachment 238138 [details] [review]
Remove gtk_widget_size_allocate from gtk_menu_popup_for_device

This patch was suggested by Benjamin Otte.
Comment 2 Matthias Clasen 2013-03-13 00:44:46 UTC
Doesn't seem to obviously break any scrolling menu examples I have around, so I think we should go for this - can you add a commit message that explains where this was causing problems ?
Comment 3 Matthias Clasen 2013-03-14 02:05:51 UTC
Review of attachment 238138 [details] [review]:

.