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 679019 - Popup menu misplaced in dual monitor
Popup menu misplaced in dual monitor
Product: gtk+
Classification: Platform
Component: Backend: Win32
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
Depends on:
Reported: 2012-06-28 06:52 UTC by Peter de Ridder
Modified: 2013-11-09 04:39 UTC
See Also:
GNOME target: ---
GNOME version: ---

Patch to fix combobox bug (3.8.1) (512 bytes, patch)
2013-10-01 13:07 UTC, Casey Fitzpatrick
accepted-commit_now Details | Review

Description Peter de Ridder 2012-06-28 06:52:24 UTC
The next case fails
Testing with gtk3-demo -> Text Widget -> Hypertext:
  Right click the textview
Expected result:
  Popup menu at cursor location
  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:
  Click a menuvar item
Expected result:
  Menu appears beneath the menu item
  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
Comment 1 juloml 2012-11-07 08:31:13 UTC
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.
Comment 2 Casey Fitzpatrick 2013-10-01 13:07:29 UTC
Created attachment 256187 [details] [review]
Patch to fix combobox bug (3.8.1)
Comment 3 Casey Fitzpatrick 2013-10-01 13:10:55 UTC
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.
Comment 4 Daniele Bellavista 2013-10-18 07:48:20 UTC
Same bug on Linux Gentoo with Awesome WM and intel video driver.
Version tested GTK+ 3.2, 3.4, 3.6 and 3.8
Comment 5 tarnyko 2013-10-31 00:08:34 UTC
Reproduced on win32, latest master.

Patch looks good to me and effectively fixes this.
Comment 6 Matthias Clasen 2013-11-01 10:22:29 UTC
Review of attachment 256187 [details] [review]:

Lets get this in, then