diff options
| author | Chong Yidong | 2008-09-18 18:13:09 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-09-18 18:13:09 +0000 |
| commit | fd2f80c65321ccc7ce7be535cb133bc923ae2ebf (patch) | |
| tree | 1c531fd270c0afc93cbf6eb55de7753efbe902d5 /src/xmenu.c | |
| parent | abe9d29cbe232d1341d846bdd4106e4238d8ae13 (diff) | |
| download | emacs-fd2f80c65321ccc7ce7be535cb133bc923ae2ebf.tar.gz emacs-fd2f80c65321ccc7ce7be535cb133bc923ae2ebf.zip | |
(menu_position_func): Use x_display_pixel_height and
x_display_pixel_width.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
| 1696 | { | 1696 | { |
| 1697 | struct next_popup_x_y* data = (struct next_popup_x_y*)user_data; | 1697 | struct next_popup_x_y* data = (struct next_popup_x_y*)user_data; |
| 1698 | GtkRequisition req; | 1698 | GtkRequisition req; |
| 1699 | int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width; | 1699 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (data->f); |
| 1700 | int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height; | 1700 | int disp_width = x_display_pixel_width (dpyinfo); |
| 1701 | int disp_height = x_display_pixel_height (dpyinfo); | ||
| 1701 | 1702 | ||
| 1702 | *x = data->x; | 1703 | *x = data->x; |
| 1703 | *y = data->y; | 1704 | *y = data->y; |