# HG changeset patch # User Chong Yidong # Date 1221761589 0 # Node ID 25a5f64dd9db53813c6ea2dfd06d62fb57b7d9e4 # Parent 033f7f08bc556e6cb0f38a82e07d2c69ddfce1d2 (menu_position_func): Use x_display_pixel_height and x_display_pixel_width. diff -r 033f7f08bc55 -r 25a5f64dd9db src/xmenu.c --- 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;