mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(menu_position_func): Use x_display_pixel_height and
x_display_pixel_width.
This commit is contained in:
parent
abe9d29cbe
commit
fd2f80c653
1 changed files with 3 additions and 2 deletions
|
|
@ -1696,8 +1696,9 @@ menu_position_func (menu, x, y, push_in, user_data)
|
|||
{
|
||||
struct next_popup_x_y* data = (struct next_popup_x_y*)user_data;
|
||||
GtkRequisition req;
|
||||
int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width;
|
||||
int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height;
|
||||
struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (data->f);
|
||||
int disp_width = x_display_pixel_width (dpyinfo);
|
||||
int disp_height = x_display_pixel_height (dpyinfo);
|
||||
|
||||
*x = data->x;
|
||||
*y = data->y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue