GNOME Bugzilla – Bug 614572
Main menu opens towards middle of X screen in stead of middle of monitor
Last modified: 2016-02-09 10:49:40 UTC
Created attachment 157685 [details] [review] patch In a multi-monitor setup, the main menu opens upward if the applet is in the bottom half of the screen, and downward if the applet is in the upper half of the screen. (And similarly for left/right.) My setup is as follows: two monitors, the smaller one below the larger one, panel at the upper boundary of the lower screen. Then the above means that the main menu wants to open upward. GTK's handling of push_in pushes the menu onto the monitor but leaves all items scrolled upwards. I will post a screenshot. Solution: the menu should open towards middle of the *monitor*, not the *screen*. Patch against 2.30.0 (gnome-panel-1:2.30.0-0ubuntu1, apt-get source) attached. It needs only minor changes in applet.c. I have only been able to test in my setup.
Created attachment 157686 [details] screenshot
Created attachment 256852 [details] [review] Multi-monitor fix I have reformatted the patch so it applies cleanly to the current version of gnome-panel. I cannot really see any difference with and without patch, but the way this is calculated seems logical to me. Maybe someone else can review the patch.
Added Alberts to CC, maybe you can take a look.
(In reply to comment #3) > Added Alberts to CC, maybe you can take a look. I don't use multi-monitor setup so I can not test this, but this seems logical to me too.
Pushed to master as: 87cc051e35087ba2cd19c287a9d4a331634c668f Pushed to gnome-3-18 as: c0a701c0b38bb176c37ce323bb028f8168319b4c Thank you for your patch and apologies it took so long to merge it.