From: Chong Yidong Date: Thu, 18 Sep 2008 18:13:09 +0000 (+0000) Subject: (menu_position_func): Use x_display_pixel_height and X-Git-Tag: emacs-pretest-23.0.90~2861 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd2f80c65321ccc7ce7be535cb133bc923ae2ebf;p=emacs.git (menu_position_func): Use x_display_pixel_height and x_display_pixel_width. --- diff --git a/src/xmenu.c b/src/xmenu.c index 5cc92422007..04c659a1ce0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -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;