diff options
| author | Michael R. Mauger | 2017-07-24 22:15:04 -0400 |
|---|---|---|
| committer | Michael R. Mauger | 2017-07-24 22:15:04 -0400 |
| commit | df1a71272e5cdd10b511e2ffd702ca50ddd8a773 (patch) | |
| tree | 9b9ac725394ee80891e2bff57b6407d0e491e71a /src/xmenu.c | |
| parent | eb27fc4d49e8c914cd0e6a8a2d02159601542141 (diff) | |
| parent | 32daa3cb54523006c88717cbeac87964cd687a1b (diff) | |
| download | emacs-df1a71272e5cdd10b511e2ffd702ca50ddd8a773.tar.gz emacs-df1a71272e5cdd10b511e2ffd702ca50ddd8a773.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 6c8a0c506cc..64df151b289 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1271,6 +1271,11 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, | |||
| 1271 | 1271 | ||
| 1272 | /* Child of win. */ | 1272 | /* Child of win. */ |
| 1273 | &dummy_window); | 1273 | &dummy_window); |
| 1274 | #ifdef HAVE_GTK3 | ||
| 1275 | /* Use window scaling factor to adjust position for hidpi screens. */ | ||
| 1276 | x /= xg_get_scale (f); | ||
| 1277 | y /= xg_get_scale (f); | ||
| 1278 | #endif | ||
| 1274 | unblock_input (); | 1279 | unblock_input (); |
| 1275 | popup_x_y.x = x; | 1280 | popup_x_y.x = x; |
| 1276 | popup_x_y.y = y; | 1281 | popup_x_y.y = y; |