diff options
| author | Richard M. Stallman | 2005-06-04 18:09:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-06-04 18:09:16 +0000 |
| commit | 196ac78ce159aaeb675c57e8cabb5747cbba3713 (patch) | |
| tree | 110961296b28fbd669757562fe1ce208744ff387 /src | |
| parent | a4e51a7a678a101cf7a6766e50ef6e5d3fe8d369 (diff) | |
| download | emacs-196ac78ce159aaeb675c57e8cabb5747cbba3713.tar.gz emacs-196ac78ce159aaeb675c57e8cabb5747cbba3713.zip | |
(popup_get_selection): Click not in menu deactivates menu.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xmenu.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 36650215350..c0466275d4a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2005-06-04 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * xmenu.c (popup_get_selection): Click not in menu deactivates menu. | ||
| 4 | |||
| 1 | 2005-06-04 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 5 | 2005-06-04 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * macmenu.c (cleanup_popup_menu): New function. | 7 | * macmenu.c (cleanup_popup_menu): New function. |
diff --git a/src/xmenu.c b/src/xmenu.c index 6f758d12fc7..6e3a21604c1 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1235,6 +1235,10 @@ popup_get_selection (initial_event, dpyinfo, id, do_timers) | |||
| 1235 | if (event.type == ButtonRelease | 1235 | if (event.type == ButtonRelease |
| 1236 | && dpyinfo->display == event.xbutton.display) | 1236 | && dpyinfo->display == event.xbutton.display) |
| 1237 | { | 1237 | { |
| 1238 | /* If the click is not on the menu, deactivate the menu. */ | ||
| 1239 | if (x_any_window_to_frame (dpyinfo, event.xexpose.window)) | ||
| 1240 | popup_activated_flag = 0; | ||
| 1241 | |||
| 1238 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); | 1242 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
| 1239 | #ifdef USE_MOTIF /* Pretending that the event came from a | 1243 | #ifdef USE_MOTIF /* Pretending that the event came from a |
| 1240 | Btn1Down seems the only way to convince Motif to | 1244 | Btn1Down seems the only way to convince Motif to |