Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/addins/MacPlatform/MacPlatform.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs
index 946f0e65e8..47f89932f9 100644
--- a/main/src/addins/MacPlatform/MacPlatform.cs
+++ b/main/src/addins/MacPlatform/MacPlatform.cs
@@ -206,6 +206,8 @@ namespace MonoDevelop.MacIntegration
public override bool ShowContextMenu (CommandManager commandManager, Gtk.Widget widget, double x, double y, CommandEntrySet entrySet)
{
Gtk.Application.Invoke (delegate {
+ // Explicitly release the grab because the menu is shown on the mouse position, and the widget doesn't get the mouse release event
+ Gdk.Pointer.Ungrab (Gtk.Global.CurrentEventTime);
var menu = new MDMenu (commandManager, entrySet);
var nsview = MacInterop.GtkQuartz.GetView (widget);
var toplevel = widget.Toplevel as Gtk.Window;