aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c5
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;