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:
authorLluis Sanchez <lluis@xamarin.com>2014-06-18 19:36:33 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-06-18 19:53:25 +0400
commit5f2066e8f900f94ed17646f2c32637190addd019 (patch)
treedf285cc5eb064e5921bfcba8fc9847438824b337
parent00346606c36617d7d4cc21d33207e44abef8137a (diff)
[Mac] Fix focus issues when using context menumonodevelop-5.1.1.1
Fixes bug #20656 - Regression in file/directory renaming in the Solution Tree
-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;