]> code.delx.au - gnu-emacs/commitdiff
(menu_position_func): Use x_display_pixel_height and
authorChong Yidong <cyd@stupidchicken.com>
Thu, 18 Sep 2008 18:13:09 +0000 (18:13 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 18 Sep 2008 18:13:09 +0000 (18:13 +0000)
x_display_pixel_width.

src/xmenu.c

index 5cc924220076cb12f91db5f6ed702008590dbf18..04c659a1ce05c5367394fc08bede87e4d2eadeb3 100644 (file)
@@ -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;