Fix the placement of GTK menus on multi-monitor systems
commitbdf41152af3434307218ac2863b737c4486f740e
authorAlexander Gramiak <agrambot@gmail.com>
Sat, 10 Jun 2017 09:28:03 +0000 (10 12:28 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Jun 2017 09:28:03 +0000 (10 12:28 +0300)
treed8c2275a5814aa0c3be2761c1282b30007551bc1
parent187a71df596a331a23bf86ee314c12035f42aff2
Fix the placement of GTK menus on multi-monitor systems

menu_position_func did not properly use the current monitor's
resolution.  Also see commit '2016-02-06 22:12:53 +0100'.

* lisp/frame.el (frame-monitor-attribute, frame-monitor-geometry)
(frame-monitor-workarea): New functions.

* src/xmenu.c (menu_position_func): Take into account the workarea of
the monitor that contains the mouse.  (Bug#23568)
lisp/frame.el
src/xmenu.c