GNOME Bugzilla – Bug 772096
Dual Monitor: Menu and ComboBox mispositioned
Last modified: 2017-08-24 22:08:58 UTC
Created attachment 336408 [details] bottom aligned context menu I have a dual monitor setup with displays of different sizes (left: 1600x900, right: 2560x1440). When I setup the displays to be bottom aligned, the selection portion of a combo box and context menus are all placed significantly lower than they should be. Example screenshot attached. When I setup the displays to be top aligned, the same widgets appear in the correct location.
Created attachment 336409 [details] top aligned context menu Here's how it looks when the displays are top aligned, which is what I'd expect.
Created attachment 336410 [details] bottom aligned combo box combo box from gnome tweak tool showing the same behavior.
This may be related to https://bugzilla.gnome.org/show_bug.cgi?id=771841, but I don't think I'm using HiDPI mode on either display.
Filed under the Wayland backend because this does not appear when using X11.
Looking at the screen shots, they appear less than useful because my mouse pointer isn't visible. In both of the context menu screenshots, the right-click was in roughly the same location inside the gedit window.
This bug is against gtk+ 3.20. gtk+ saw a lot of changes related to menu placement between 3.20 and 3.22, none which can be backported. Can you reproduce the issue with 3.22?
Could it be a dupe of bug 766722?
After upgrading to gtk+ 3.22 (distro version: 3.22.1+8+ge11df6c-2), the issue appears to be mostly resolved. The only place I see it now is for right click context menus in gnome-terminal.
The context menu in nautilus is also misplaced. Combo Boxes definitely fixed. Context Menus still misplaced.
Nautilus 3.22.1 should have been switched to use gtk_menu_popup_at_pointer(), which should let GTK+ position the menu correctly. For applications using gtk_menu_popup(), there's bug 772922 which is meant to slightly improve the chances of getting it right, and gtk_menu_popup() has been deprecated in Git.
Confirmed: Nautilus 3.22.1 gets the menu placement right. I think this can be closed since it's up to applications to fix usage now.