diff options
| author | Richard M. Stallman | 1994-04-03 19:03:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-03 19:03:23 +0000 |
| commit | b14db4d73b5ec7fb35a2cba7e404820239e8d2ed (patch) | |
| tree | 040e4db23f8f89c50f05373cee0e54a8c7f60233 /src | |
| parent | 55cc089c5b6c7f76b8710fc3310d7c627a5556ff (diff) | |
| download | emacs-b14db4d73b5ec7fb35a2cba7e404820239e8d2ed.tar.gz emacs-b14db4d73b5ec7fb35a2cba7e404820239e8d2ed.zip | |
(Fx_popup_dialog): If POSITION is t, use selected frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 0d616b6c067..757fa092de4 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -856,6 +856,7 @@ The return value is VALUE from the chosen item.") | |||
| 856 | /* Decode the first argument: find the window or frame to use. */ | 856 | /* Decode the first argument: find the window or frame to use. */ |
| 857 | if (EQ (position, Qt)) | 857 | if (EQ (position, Qt)) |
| 858 | { | 858 | { |
| 859 | #if 0 /* Using the frame the mouse is on may not be right. */ | ||
| 859 | /* Use the mouse's current position. */ | 860 | /* Use the mouse's current position. */ |
| 860 | FRAME_PTR new_f = 0; | 861 | FRAME_PTR new_f = 0; |
| 861 | Lisp_Object bar_window; | 862 | Lisp_Object bar_window; |
| @@ -869,6 +870,14 @@ The return value is VALUE from the chosen item.") | |||
| 869 | XSET (window, Lisp_Frame, new_f); | 870 | XSET (window, Lisp_Frame, new_f); |
| 870 | else | 871 | else |
| 871 | window = selected_window; | 872 | window = selected_window; |
| 873 | #endif | ||
| 874 | /* Decode the first argument: find the window and the coordinates. */ | ||
| 875 | if (EQ (position, Qt)) | ||
| 876 | { | ||
| 877 | window = selected_window; | ||
| 878 | XFASTINT (x) = 0; | ||
| 879 | XFASTINT (y) = 0; | ||
| 880 | } | ||
| 872 | } | 881 | } |
| 873 | else if (CONSP (position)) | 882 | else if (CONSP (position)) |
| 874 | { | 883 | { |