void OnToolItemPress(object ob, Gtk.ButtonPressEventArgs args) { if (wrapper != null && wrapper.Project.Selection != wrapper.Wrapped) { wrapper.Select(); args.RetVal = true; return; } if (args.Event.Button == 1 && !GtkWorkarounds.TriggersContextMenu(args.Event)) { motionDrag = true; } args.RetVal = ProcessButtonPress(args.Event); }