changeset 98224:25a5f64dd9db

(menu_position_func): Use x_display_pixel_height and x_display_pixel_width.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 18 Sep 2008 18:13:09 +0000
parents 033f7f08bc55
children e7da931942f1
files src/xmenu.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu Sep 18 18:12:22 2008 +0000
+++ b/src/xmenu.c	Thu Sep 18 18:13:09 2008 +0000
@@ -1696,8 +1696,9 @@
 {
   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;