GNOME Bugzilla – Bug 778009
menu drawn on top of menubar in Fedora
Last modified: 2017-02-06 08:51:37 UTC
When the user clicks on a menu item the menu is drawn on top of the menubar. This hides the other menu items and the user can no longer select other menu items without first closing the current menu. Expected behavior is for the menu to be drawn *below* the menu bar. This issue was *not* present using GTK+ 3.22.2 (tested on a fresh installation of Fedora 25). The bug appeared after doing a "dnf upgrade" which upgraded to GTK+ 3.22.7.
Is that on Wayland or X11? Can you also please give some more details on how to reproduce this, the menu looks fine here.
Ah wait, yes, I see what you mean, the menu is misplaced.
This is my fault actually, commit 9a5ffcd
Created attachment 344690 [details] [review] [PATCH] wayland: do not clamp anchor values Clamping the anchor values as introduced in commit 9a5ffcd to fix bug 777176 breaks menu positioning. By keeping the anchors rectangle size greater than zero, we end up deducting some positive value from the original position, so there is no need to clamp() actually, keeping the values positive is enough and avoids the issue with menu positioning on the menubar. An additional benefit is to make the code a lot simpler.
Review of attachment 344690 [details] [review]: Seems sane to me.
Comment on attachment 344690 [details] [review] [PATCH] wayland: do not clamp anchor values attachment 344690 [details] [review] pushed to git master as commit afa78fc - wayland: do not clamp anchor values attachment 344690 [details] [review] pushed to branch gtk-3-22 as commit 7ec16c5 - wayland: do not clamp anchor values