aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-29 23:45:17 +0000
committerRichard M. Stallman1994-04-29 23:45:17 +0000
commita5285df359f6a65c43c73a2ef3cb4fcf9ec49857 (patch)
tree0487e5443cc14d2520064466379f554fd7c684d3 /src/xmenu.c
parentb229b8d187a65116800e56f7ebd35edbecbcf026 (diff)
downloademacs-a5285df359f6a65c43c73a2ef3cb4fcf9ec49857.tar.gz
emacs-a5285df359f6a65c43c73a2ef3cb4fcf9ec49857.zip
(xdialog_show): Clear x_mouse_grabbed.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index eb56e43c9ef..87a74a1a09f 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1925,6 +1925,12 @@ xdialog_show (f, menubarp, keymaps, title, error)
1925 } 1925 }
1926 pop_down: 1926 pop_down:
1927 1927
1928 /* State that no mouse buttons are now held.
1929 That is not necessarily true, but the fiction leads to reasonable
1930 results, and it is a pain to ask which are actually held now
1931 or track this in the loop above. */
1932 x_mouse_grabbed = 0;
1933
1928 /* Unread any events that we got but did not handle. */ 1934 /* Unread any events that we got but did not handle. */
1929 while (queue != NULL) 1935 while (queue != NULL)
1930 { 1936 {
@@ -2228,6 +2234,13 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
2228 break; 2234 break;
2229 } 2235 }
2230 XMenuDestroy (XDISPLAY menu); 2236 XMenuDestroy (XDISPLAY menu);
2237
2238 /* State that no mouse buttons are now held.
2239 (The oldXMenu code doesn't track this info for us.)
2240 That is not necessarily true, but the fiction leads to reasonable
2241 results, and it is a pain to ask which are actually held now. */
2242 x_mouse_grabbed = 0;
2243
2231 return entry; 2244 return entry;
2232} 2245}
2233#endif /* not USE_X_TOOLKIT */ 2246#endif /* not USE_X_TOOLKIT */