GNOME Bugzilla – Bug 679019
Popup menu misplaced in dual monitor
Last modified: 2013-11-09 04:39:08 UTC
The next case fails Testing with gtk3-demo -> Text Widget -> Hypertext: Steps: Right click the textview Expected result: Popup menu at cursor location Observation: Popup menu appears at the other screen at that location. Or the popup menu appears at the screen border. The next case succeeds Testing with gtk3-demo -> UI Manager: Steps: Click a menuvar item Expected result: Menu appears beneath the menu item Observation: Menu appears beneath the menu item The environment seems to be important to reproduce this problem. The environment I tested this on: Windows 7 Dual monitor confugiration: [2][1] extended desktop Monitor [1] is the main monitor (it has the menubar) Monitor [1] and [2] use the same (native) resolution
Also experienced described issue (GTK 3.4 and 3.6 opensuse mingw builds). Additionally also combo box item list appears on wrong monitor on mouse click.
Created attachment 256187 [details] [review] Patch to fix combobox bug (3.8.1)
Comment on attachment 256187 [details] [review] Patch to fix combobox bug (3.8.1) Saw issue in opensuse mingw build 3.8.1. Attached a patch that seems to fix it. The cursor postion was not being offset into GDK coordinate space. Tested by reproducing the combobox issue, but it should fix the popup menu as well.
Same bug on Linux Gentoo with Awesome WM and intel video driver. Version tested GTK+ 3.2, 3.4, 3.6 and 3.8
Reproduced on win32, latest master. Patch looks good to me and effectively fixes this.
Review of attachment 256187 [details] [review]: Lets get this in, then
Committed. https://git.gnome.org/browse/gtk+/commit/?id=55dba74a24789b417f2feb80daf5e57627298f7e