Commit a5285df3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(xdialog_show): Clear x_mouse_grabbed.

parent b229b8d1
...@@ -1925,6 +1925,12 @@ xdialog_show (f, menubarp, keymaps, title, error) ...@@ -1925,6 +1925,12 @@ xdialog_show (f, menubarp, keymaps, title, error)
} }
pop_down: pop_down:
/* State that no mouse buttons are now held.
That is not necessarily true, but the fiction leads to reasonable
results, and it is a pain to ask which are actually held now
or track this in the loop above. */
x_mouse_grabbed = 0;
/* Unread any events that we got but did not handle. */ /* Unread any events that we got but did not handle. */
while (queue != NULL) while (queue != NULL)
{ {
...@@ -2228,6 +2234,13 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) ...@@ -2228,6 +2234,13 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
break; break;
} }
XMenuDestroy (XDISPLAY menu); XMenuDestroy (XDISPLAY menu);
/* State that no mouse buttons are now held.
(The oldXMenu code doesn't track this info for us.)
That is not necessarily true, but the fiction leads to reasonable
results, and it is a pain to ask which are actually held now. */
x_mouse_grabbed = 0;
return entry; return entry;
} }
#endif /* not USE_X_TOOLKIT */ #endif /* not USE_X_TOOLKIT */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment