diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index e1ace610f9c..138f0484aa3 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2093,7 +2093,7 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) | |||
| 2093 | 2093 | ||
| 2094 | /* Find the position of the outside upper-left corner of | 2094 | /* Find the position of the outside upper-left corner of |
| 2095 | the inner window, with respect to the outer window. */ | 2095 | the inner window, with respect to the outer window. */ |
| 2096 | if (f->display.x->parent_desc != ROOT_WINDOW) | 2096 | if (f->display.x->parent_desc != FRAME_X_DISPLAY_INFO (f)->root_window) |
| 2097 | { | 2097 | { |
| 2098 | BLOCK_INPUT; | 2098 | BLOCK_INPUT; |
| 2099 | XTranslateCoordinates (FRAME_X_DISPLAY (f), | 2099 | XTranslateCoordinates (FRAME_X_DISPLAY (f), |
| @@ -2222,9 +2222,9 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) | |||
| 2222 | /* All set and ready to fly. */ | 2222 | /* All set and ready to fly. */ |
| 2223 | XMenuRecompute (FRAME_X_DISPLAY (f), menu); | 2223 | XMenuRecompute (FRAME_X_DISPLAY (f), menu); |
| 2224 | dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), | 2224 | dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), |
| 2225 | FRAME_X_DISPLAY_INFO (f)->screen); | 2225 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))); |
| 2226 | dispheight = DisplayHeight (FRAME_X_DISPLAY (f), | 2226 | dispheight = DisplayHeight (FRAME_X_DISPLAY (f), |
| 2227 | FRAME_X_DISPLAY_INFO (f)->screen); | 2227 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))); |
| 2228 | x = min (x, dispwidth); | 2228 | x = min (x, dispwidth); |
| 2229 | y = min (y, dispheight); | 2229 | y = min (y, dispheight); |
| 2230 | x = max (x, 1); | 2230 | x = max (x, 1); |