diff options
| author | Jason Rumney | 2008-08-26 14:23:25 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-08-26 14:23:25 +0000 |
| commit | 38f2b1122feb7ceb9a1bea82553d643935187a60 (patch) | |
| tree | 3beccbc863cfd5c9ec72ce57eb46d646040411a0 /src | |
| parent | 5762095646be6562438066e8f1fa4e6c04752610 (diff) | |
| download | emacs-38f2b1122feb7ceb9a1bea82553d643935187a60.tar.gz emacs-38f2b1122feb7ceb9a1bea82553d643935187a60.zip | |
(Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure mouse is not
grabbed after menu is finished.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32menu.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2fac842fc4a..d43e8652b4f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-08-26 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure | ||
| 4 | mouse is not grabbed after menu is finished. | ||
| 5 | |||
| 1 | 2008-08-26 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-08-26 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * editfns.c (Ffield_string_no_properties): Fix typo in docstring. | 8 | * editfns.c (Ffield_string_no_properties): Fix typo in docstring. |
diff --git a/src/w32menu.c b/src/w32menu.c index 1dbb2229e5a..be3668017e0 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -812,6 +812,7 @@ cached information about equivalent key sequences. */) | |||
| 812 | if (NILP (position)) | 812 | if (NILP (position)) |
| 813 | { | 813 | { |
| 814 | discard_menu_items (); | 814 | discard_menu_items (); |
| 815 | FRAME_X_DISPLAY_INFO (f)->grabbed = 0; | ||
| 815 | UNGCPRO; | 816 | UNGCPRO; |
| 816 | return Qnil; | 817 | return Qnil; |
| 817 | } | 818 | } |
| @@ -825,6 +826,7 @@ cached information about equivalent key sequences. */) | |||
| 825 | if (current_popup_menu) | 826 | if (current_popup_menu) |
| 826 | { | 827 | { |
| 827 | discard_menu_items (); | 828 | discard_menu_items (); |
| 829 | FRAME_X_DISPLAY_INFO (f)->grabbed = 0; | ||
| 828 | UNGCPRO; | 830 | UNGCPRO; |
| 829 | return Qnil; | 831 | return Qnil; |
| 830 | } | 832 | } |
| @@ -837,6 +839,7 @@ cached information about equivalent key sequences. */) | |||
| 837 | UNBLOCK_INPUT; | 839 | UNBLOCK_INPUT; |
| 838 | 840 | ||
| 839 | discard_menu_items (); | 841 | discard_menu_items (); |
| 842 | FRAME_X_DISPLAY_INFO (f)->grabbed = 0; | ||
| 840 | 843 | ||
| 841 | #endif /* HAVE_MENUS */ | 844 | #endif /* HAVE_MENUS */ |
| 842 | 845 | ||
| @@ -959,6 +962,7 @@ otherwise it is "Question". */) | |||
| 959 | UNBLOCK_INPUT; | 962 | UNBLOCK_INPUT; |
| 960 | 963 | ||
| 961 | discard_menu_items (); | 964 | discard_menu_items (); |
| 965 | FRAME_X_DISPLAY_INFO (f)->grabbed = 0; | ||
| 962 | 966 | ||
| 963 | if (error_name) error (error_name); | 967 | if (error_name) error (error_name); |
| 964 | return selection; | 968 | return selection; |
| @@ -1931,6 +1935,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1931 | /* Clean up extraneous mouse events which might have been generated | 1935 | /* Clean up extraneous mouse events which might have been generated |
| 1932 | during the call. */ | 1936 | during the call. */ |
| 1933 | discard_mouse_events (); | 1937 | discard_mouse_events (); |
| 1938 | FRAME_X_DISPLAY_INFO (f)->grabbed = 0; | ||
| 1934 | 1939 | ||
| 1935 | /* Free the widget_value objects we used to specify the contents. */ | 1940 | /* Free the widget_value objects we used to specify the contents. */ |
| 1936 | free_menubar_widget_value_tree (first_wv); | 1941 | free_menubar_widget_value_tree (first_wv); |