GNOME Bugzilla – Bug 778834
GtkMenu opened outside of screen
Last modified: 2017-02-19 11:29:02 UTC
When a GtkMenu is popped up when the mouse pointer is near the right-hand and/or bottom screen edges, the menu is positioned partly outside the screen.
The bug happens when running in HiDPI mode (for example with GDK_SCALE=2). This happens both when the menu is opened with gtk_menu_popup() and with gtk_menu_popup_at_pointer(). Tested on Windows 7 and Windows 10.
I'm guessing perhaps this is related to bug 778835.
I've uploaded some time-limited debugging builds of the gtk-3-22 branch at d825c34ca3 plus attachment 346081 [details] [review] from bug 778835 for testers who are using current MSYS2. Please can everyone affected by this bug test with them? https://filebin.net/8wf4l3dl4nbdblu9 To install these .pkg.tar.xz files, download them and type: $ pacman -U /path/to/mingw-w64-*-gtk3-git-3.22.8.14.gd825c34ca3_patch346081-1-any.pkg.tar.xz To revert to a stock MSYS2 GTK3 installation (to allow future upgrades to work): $ pacman -Syyuu # upgrade the rest of the system as needed $ pacman -S mingw-w64-{x86_64,i686}-gtk3 Git packages are marked as conflicting with non-git ones, so you will be asked several times during installation whether you want to proceed. Enter "y" each time.
Reproduced with stock MSYS2 mingw-w64-*-gtk3 version 3.22.7-1 and $ GDK_SCALE=2 gtk3-demo --run=menus The patched build in comment 3 fixes this for me with the same command. Also I can activate the menus correctly with my graphics tablet now: it seems to fix bug 778508 too☺
The test build fixes this bug too for me. Great stuff!