[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31223: [PATCH] Fix empty/incorrect GTK menus on HiDPI monitors with
From: |
Tobias Bading |
Subject: |
bug#31223: [PATCH] Fix empty/incorrect GTK menus on HiDPI monitors with window scaling factor > 1 |
Date: |
Wed, 27 Nov 2019 17:03:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 |
This should fix Bug#31223, Bug#28106, Bug#23672 as well as Ubuntu bug
https://bugs.launchpad.net/ubuntu/+source/emacs25/+bug/1695228
Also fixes the formerly unscaled Y value returned by
frame-monitor-workarea (and display-monitor-attributes-list).
For details on why some GTK menus were empty please see thread
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01061.html
* src/gtkutil.c
(menubar_map_cb): properly scale req.height so that the menu bar's
height is in device pixels as expected
(xg_update_frame_menubar): dito
(xg_event_is_for_menubar): properly scale rec.x and rec.y so that
gtk_widget_intersect() works as intended
* src/xfns.c
(Fx_display_monitor_attributes_list): properly scale work.x and work.y
0001-Fix-empty-incorrect-GTK-menus-on-HiDPI-monitors.patch
Description: Text Data
- bug#31223: [PATCH] Fix empty/incorrect GTK menus on HiDPI monitors with window scaling factor > 1,
Tobias Bading <=