]> git.eshelyaron.com Git - emacs.git/commit
Fix menu placement on multiple-display setups when using lwlib
authorPo Lu <luangruo@yahoo.com>
Tue, 28 Dec 2021 02:46:58 +0000 (10:46 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 28 Dec 2021 02:52:38 +0000 (10:52 +0800)
commitb6b2f797d9df3e5562b946d5f4c690f8967c1b88
tree7f13f6d262a6c2301ed467709b0ea041a770c23c
parent1a724cc2d2e7f08b9fcad569c8cacf126ad55791
Fix menu placement on multiple-display setups when using lwlib

* lwlib/xlwmenu.c (fit_to_screen):
(pop_up_menu): Adjust menu position based on dimensions of the
current monitor's workarea.  (bug#52809)

* src/xfns.c (x_get_monitor_attributes): Stop testing for the
RandR extension here.
(xlw_monitor_dimensions_at_pos_1):
(xlw_monitor_dimensions_at_pos): New functions.

* src/xterm.c (x_term_init): Query for the RandR extension when
connecting to a display.
* src/xterm.h (xlw_monitor_dimensions_at_pos): New prototype.
lwlib/xlwmenu.c
src/xfns.c
src/xterm.c
src/xterm.h