Andy Murray capped his returned from hip surgery by winning the doubles at Queen's alongside Feliciano Lopez.