diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2017-07-16 16:42:26 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2017-07-17 16:58:57 +0200 |
commit | 4198b4d985db77ad6ae372fa048250e93de5013c (patch) | |
tree | 7f2744d0b5cac4d4e1915c1c8abaa0bfa5a2c7fb /src/gtkutil.h | |
parent | 8729634c511cd564353ff17eb6dc06e87d081035 (diff) | |
download | emacs-4198b4d985db77ad6ae372fa048250e93de5013c.tar.gz emacs-4198b4d985db77ad6ae372fa048250e93de5013c.tar.bz2 emacs-4198b4d985db77ad6ae372fa048250e93de5013c.zip |
Get positions of menus and tooltips right on HiDPI
* src/gtkutil.c (xg_get_scale): New function.
(xg_show_tooltip): Use it.
* src/xmenu.c (create_and_show_popup_menu): Put menus in the
right place.
Diffstat (limited to 'src/gtkutil.h')
-rw-r--r-- | src/gtkutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index 0abcb06bc71..a252cbef99c 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -156,6 +156,7 @@ extern void xg_frame_resized (struct frame *f, extern void xg_frame_set_char_size (struct frame *f, int width, int height); extern GtkWidget * xg_win_to_widget (Display *dpy, Window wdesc); +extern int xg_get_scale (struct frame *f); extern void xg_display_open (char *display_name, Display **dpy); extern void xg_display_close (Display *dpy); extern GdkCursor * xg_create_default_cursor (Display *dpy); |